Notes
This function is in beta test. Please help improve it in the issues
here.
Exception in thread "main" java.lang.NullPointerException at com.ve472.l1.Hall.compareTo(Hall.java:103) at com.ve472.l1.Hall.compareTo(Hall.java:9) at java.base/java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:320) at java.base/java.util.ComparableTimSort.sort(ComparableTimSort.java:188) at java.base/java.util.Arrays.sort(Arrays.java:1315) at java.base/java.util.Arrays.sort(Arrays.java:1509) at java.base/java.util.ArrayList.sort(ArrayList.java:1750) at java.base/java.util.Collections.sort(Collections.java:145) at com.ve472.l1.Cinema.<init>(Cinema.java:25) at com.ve472.l1.Main.main(Main.java:25)
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
hall1.txt Not found. hall3.txt Not found. hall0.txt Not found.