var s = (1.5-1)*2;alert(s);
Standard input is empty
Main.java:1: error: class, interface, or enum expected var s = (1.5-1)*2; ^ Main.java:2: error: class, interface, or enum expected alert(s); ^ 2 errors
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!