/* package whatever; // don't place package name! */ import java.util.*;import java.lang.*;import java.io.*; /* Name of the class has to be "Main" only if the class is public. */class Ideone{ public static void main (String[] args) throws java.lang.Exception { Integer.parseInt("222", 2); }}
Standard input is empty
Standard output is empty
Exception in thread "main" java.lang.NumberFormatException: For input string: "222" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at Ideone.main(Main.java:12)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!