fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Test
  6. {
  7. static int[] a = new int[]{ 1, 2, 3, 4 };
  8. static int[] b = new int[]{ 2, 4, 6, 8 };
  9.  
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. mainloop: for(int v:a){
  13. for(int w:b){
  14. if(v==w)
  15. continue mainloop;
  16. }
  17. System.out.println(v);
  18. }
  19. }
  20. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
1
3