/in/Main.java:2: error: class, interface, or enum expected
public static int[] intersect3(int[] a1, int[] a2, int[] a3 ) {
^
/in/Main.java:4: error: class, interface, or enum expected
Arrays.sort(a2);
^
/in/Main.java:5: error: class, interface, or enum expected
Arrays.sort(a3);
^
/in/Main.java:6: error: class, interface, or enum expected
int len1=a1.length;
^
/in/Main.java:7: error: class, interface, or enum expected
int len2=a2.length;
^
/in/Main.java:8: error: class, interface, or enum expected
int len3=a3.length;
^
/in/Main.java:9: error: class, interface, or enum expected
ArrayList<Integer> al=new ArrayList<Integer>();
^
/in/Main.java:10: error: class, interface, or enum expected
for(int i=0,j=0;i<len1 && j<len2;) {
^
/in/Main.java:10: error: class, interface, or enum expected
for(int i=0,j=0;i<len1 && j<len2;) {
^
/in/Main.java:10: error: class, interface, or enum expected
for(int i=0,j=0;i<len1 && j<len2;) {
^
/in/Main.java:13: error: class, interface, or enum expected
i++;
^
/in/Main.java:14: error: class, interface, or enum expected
j++;
^
/in/Main.java:15: error: class, interface, or enum expected
}
^
/in/Main.java:18: error: class, interface, or enum expected
}
^
/in/Main.java:21: error: class, interface, or enum expected
}
^
/in/Main.java:23: error: class, interface, or enum expected
for(int k=0,l=0;k<len2 && l<len3;) {
^
/in/Main.java:23: error: class, interface, or enum expected
for(int k=0,l=0;k<len2 && l<len3;) {
^
/in/Main.java:26: error: class, interface, or enum expected
k++;
^
/in/Main.java:27: error: class, interface, or enum expected
l++;
^
/in/Main.java:28: error: class, interface, or enum expected
}
^
/in/Main.java:31: error: class, interface, or enum expected
}
^
/in/Main.java:34: error: class, interface, or enum expected
}
^
/in/Main.java:38: error: class, interface, or enum expected
int[] in = new int[a2.size()];
^
/in/Main.java:41: error: class, interface, or enum expected
int e=0;
^
/in/Main.java:42: error: class, interface, or enum expected
for(int i:al)
^
/in/Main.java:44: error: class, interface, or enum expected
return in;
^
/in/Main.java:45: error: class, interface, or enum expected
}
^
27 errors