String x = "abc";System.out.println(x[0]);
Standard input is empty
Main.java:1: class, interface, or enum expected String x = "abc"; ^ Main.java:2: class, interface, or enum expected System.out.println(x[0]); ^ 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!