Skip to content

Commit

Permalink
++stupid prints fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bopojoe committed Dec 30, 2017
1 parent fbfe0b9 commit b495481
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/project/MovieList.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ public static void addMovie(String title, int year, int runningTime, String plot

int rtHash = runningTime % runtimeHashlist.length;
int yearHash = year % yearHashlist.length;
System.out.println(title.hashCode());
int titleHash = Math.abs(title.hashCode()) % yearHashlist.length;
System.out.println(titleHash);
LinkedList<Movie> yearHashedList = yearHashlist[yearHash];
LinkedList<Movie> rtHashedList = runtimeHashlist[rtHash];
LinkedList<Movie> titleHashedList = titleHashlist[titleHash];
Expand Down

0 comments on commit b495481

Please sign in to comment.