HW-5 #1

Open
avasanatkar wants to merge 2 commits from develop into main
Showing only changes of commit 5a8e0b304a - Show all commits
+3 -3
View File
@@ -8,7 +8,7 @@ public class Main {
try {
// Instantiate the parser
Parser parser = new Parser(filePath);
// TODO: You can test your code here before you run the unit tests.
// Example: Call your sorting methods, iterate through the returned list,
// and print out the movies to see if they match the expected results in the Help folder.
@@ -26,9 +26,9 @@ public class Main {
for (Movie movie : parser.sortByYear()) {
System.out.println(movie);
}
System.out.println("Movies parsed successfully! Total movies: " + parser.sortByTitle().size());
} catch (IOException e) {
System.err.println("Error reading or parsing the HTML file: " + e.getMessage());
}