class Main{ public static void main(String[] args) { byte b = 1; // ... for(int i = 1; i <= 10; i++) { b = b + (byte) 1; System.out.println(b + " "); } }}
Standard input is empty
Main.java:9: possible loss of precision found : int required: byte b = b + (byte) 1; ^ 1 error
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!