Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

James new #14

Merged
merged 6 commits into from
Dec 29, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
+back to this then
  • Loading branch information
bopojoe committed Dec 28, 2017
commit 94b49a40268027eb71a2bf4d2dbb5c3f47d731e0
2 changes: 1 addition & 1 deletion src/project/ActorList.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void addActor(String name, int age, String gender, String national
Actor newActor = new Actor(name, age, gender, nationality, genre);
int index = age;
int hash = index % hashlist.length;
LinkedList<Actor> hashedList = hashlist[name.hashCode()];
LinkedList<Actor> hashedList = hashlist[index];
if(hashedList == null)
hashedList = new LinkedList<Actor>();
hashedList.add(newActor);
Expand Down
11 changes: 7 additions & 4 deletions src/project/Main.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
package project;


/*public class Main{
public class Main {

public static void main(String[] args) {
Main test = new Main();


}
public Main(){
IODriver app = new IODriver();

public Main() {
IODriver app = new IODriver();

}*/

}
}
/*



Expand Down Expand Up @@ -79,6 +81,7 @@ public static void main(String[] args) {
launch(args);
}
}
*/



Expand Down