public static void main(String[] args) {
Integer i = Integer.decode("1"); //Decimal
System.out.println(i);
i = Integer.decode("0xA"); //Hex
System.out.println(i);
i = Integer.decode("#A"); //Hex
System.out.println(i);
i = Integer.decode("011"); //Octal
System.out.println(i);
}
1
10
10
9