Notes
This function is in beta test. Please help improve it in the issues
here.
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:459) at com.ve472.l1.Hall.<init>(Hall.java:68) at com.ve472.l1.Cinema.<init>(Cinema.java:38) at com.ve472.l1.Main.main(Main.java:48)
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
JOJ Answer
Emmanuel Herwig,Avengers: Endgame,orange,9,6,7,8,9 Rhea Imada,Avengers: Endgame,orange,5,3,4,5,6,7,8,9,10,11,12 Dillon Tumolillo,Avengers: Endgame,strawberry,7,3,4,5,6,7,8,9 Blair Balo,Avengers: Endgame,orange,8,5,6,7,8,9 Garry Banegas,Avengers: Endgame,orange,1,5,6,7,8,9,10 Gabriel Kebert,Avengers: Endgame,orange,10,1,2,3,4,5 Rosalind Zazueta,Avengers: Endgame,orange,7,6,7,8 Tammy Barthe,Avengers: Endgame,orange,10,10,11,12,13 Ali Trodden,Avengers: Endgame,orange,2,6,7,8 Phebe Vantol,Avengers: Endgame,strawberry,6,4,5,6,7 Yuri Servey,Avengers: Endgame,strawberry,5,4,5,6,7 Len Kowitz,Avengers: Endgame,strawberry,4,4,5,6,7,8 Ronna Sarvas,Avengers: Endgame,orange,8,10 Michel Attilio,Avengers: Endgame,orange,7,9 Toby Hatchel,Avengers: Endgame,orange,6,7,8 Geralyn Groff,Avengers: Endgame,strawberry,6,8,9,10,11 Billy Bacolor,Avengers: Endgame,strawberry,3,4,5,6,7,8 Maryln Blomme,Avengers: Endgame,orange,10,14 Sachiko Lee,Avengers: Endgame,orange,9,1 So Lawrentz,Avengers: Endgame,orange,9,14 Clara Allerman,Avengers