Notes
This function is in beta test. Please help improve it in the issues
here.
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 12 out of bounds for length 12 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.set(ArrayList.java:473) at com.ve472.l1.Main.main(Main.java:162)
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
Annika Donaher,The Wandering Earth,apple,8,5,6,7 Susanna Barbadillo,The Wandering Earth,apple,7,3,4,5,6,7,8,9 Adah Tranbarger,The Wandering Earth,apple,6,4,5,6,7,8 Vickey Panza,The Wandering Earth,apple,5,1,2,3,4,5,6,7,8,9,10,11,12 Carmine Langer,The Wandering Earth,apple,8,5 Vesta Talford,The Wandering Earth,apple,8,1,2,3,4,5 Lanette Tyler,The Wandering Earth,apple,4,4,5,6,7,8 Tenisha Towles,The Wandering Earth,apple,3,4,5,6,7,8,9 Lucrecia Shutters,The Wandering Earth,apple,6,1,2,3,4 Rod Laubacher,The Wandering Earth,apple,8,9,10,11,12 Jetta Janusz,The Wandering Earth,apple,2,3,4,5,6,7,8,9 Shemeka Samayoa,The Wandering Earth,apple,7,3 Ayana Bonomo,The Wandering Earth,apple,4,1,2,3,4 Sheilah Titze,The Wandering Earth,apple,7,3 Tomasa Banick,The Wandering Earth,apple,1,2,3,4,5,6,7,8,9,10 Fonda Storie,The Wandering Earth,apple,7,3 Jana Bertley,The Wandering Earth Lorine Bruck,The Wandering Earth,apple,7,1,2,3 Chong Harriger,The Wandering Earth Masako Danas,The Wandering Earth Willena Gronquist,The Wandering Ear
JOJ Answer
Annika Donaher,The Wandering Earth,apple,8,5,6,7 Susanna Barbadillo,The Wandering Earth,apple,7,3,4,5,6,7,8,9 Adah Tranbarger,The Wandering Earth,apple,6,4,5,6,7,8 Vickey Panza,The Wandering Earth,apple,5,1,2,3,4,5,6,7,8,9,10,11,12 Carmine Langer,The Wandering Earth,apple,8,8 Vesta Talford,The Wandering Earth,apple,4,4,5,6,7,8 Lanette Tyler,The Wandering Earth,apple,3,4,5,6,7,8 Tenisha Towles,The Wandering Earth,apple,2,4,5,6,7,8,9 Lucrecia Shutters,The Wandering Earth,apple,8,1,2,3,4 Rod Laubacher,The Wandering Earth,apple,8,9,10,11,12 Jetta Janusz,The Wandering Earth,apple,1,3,4,5,6,7,8,9 Shemeka Samayoa,The Wandering Earth,apple,6,9 Ayana Bonomo,The Wandering Earth,apple,4,9,10,11,12 Sheilah Titze,The Wandering Earth,apple,7,10 Tomasa Banick,The Wandering Earth Fonda Storie,The Wandering Earth,apple,6,3 Jana Bertley,The Wandering Earth Lorine Bruck,The Wandering Earth,apple,6,10,11,12 Chong Harriger,The Wandering Earth Masako Danas,The Wandering Earth Willena Gronquist,The Wandering Earth Solomon Matteson,