fork download
  1. class Main
  2. {
  3. public static void main(String[] args)
  4. {
  5. byte b = 1;
  6. // ...
  7. for(int i = 1; i <= 10; i++)
  8. {
  9. b = b + (byte) 1;
  10. System.out.println(b + " ");
  11. }
  12.  
  13. }
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:9: possible loss of precision
found   : int
required: byte
			b = b + (byte) 1;
			      ^
1 error
stdout
Standard output is empty