class Q2{ public static void main(String[] args){ double a = 250.0; int b = 700.0; char c = 'D'; System.out.println(a + " " + b + " " + c); } }
Standard input is empty
Main.java:4: error: incompatible types: possible lossy conversion from double to int int b = 700.0; ^ 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!