fork download
  1.  
  2. class ForTest{
  3.  
  4. public static void main(String[] args) {
  5. ForTest obj = new ForTest();
  6. byte a = 10;
  7. a++;
  8. byte b = 10;
  9. b++;
  10. b = b;
  11. byte c = 10;
  12. c += c;
  13. System.out.printf("a= %d \t b = %d \t c = %d\n", new Object[] {
  14. Byte.valueOf(a), Byte.valueOf(b), Byte.valueOf(c)
  15. });
  16.  
  17. byte aa = 10;
  18. aa = (byte) (aa +1);
  19.  
  20. byte bb = 10;
  21. bb = bb++;
  22.  
  23. byte cc = 10;
  24. cc +=cc;
  25.  
  26. System.out.printf("aa= %d \t bb = %d \t cc = %d\n",aa,bb,cc);
  27.  
  28. }
  29.  
  30. }
  31.  
  32.  
Success #stdin #stdout 0.06s 215552KB
stdin
Standard input is empty
stdout
a= 11 	 b = 11 	 c = 20
aa= 11 	 bb = 10 	 cc = 20