9th Apr 2021, 4:53 PM
غاده بنت ال عامر عسيري
غاده بنت ال عامر عسيري - avatar
2 odpowiedzi
0
Import IOException: 'import java.io.IOException;' And in the main method add: public static void main(String[] args) throws IOException{ ... } Add the 'throws IOException' part.
9th Apr 2021, 5:48 PM
Odyel
Odyel - avatar
0
This code compares whether the elements are also in the second array, regardless of their position where. It's a bit misleading to call result 'identical arrays' and name the method equals() However, if this is the assignment, the program seems to be working. example of input 1 2 3 4 5 6 7 8 9 2 7 1 8 3 9 5 4 6
9th Apr 2021, 9:42 PM
zemiak