background image

.

  } 
  } 
  (2)public class Test{ 
  public static void main(String[] args){ 
  System.out.println(6 ^ 3); 
  } 
  }
  (3)public class FooBar{ 
  public static void main(String[] args){ 
  int i = 0, j = 5; 
  tp: 
  for(; ; i++){ 
  for( ; ; --j) 
  if(i > j)
  break tp; 
  } 
  System.out.println("i=" + i + ",j=" + j); 
  } 
  }
  (4)public class Test{
  public static void main(){
  int i = 1, j = 10; 
  do{ 
  if(i++ > --j)
  continue; 
  }while(i < 5); 
  System.out.println("i=" + i + " j=" + j);
  }
  } 
  (5)class Value{ 
  public int i = 15; 
  } 
  public class Test{ 
  public static void main(String argv[]){ 
  Test t = new Test(); 
  t.first(); 
  } 
  public void first(){ 
  int i = 5; 
  Value v = new Value(); 
  v.i = 25; 
  second(v, i); 
  System.out.println(v.i); 
  }