Online Java Compiler By
JavaTpoint.com
public class IntegerParseIntRadixExample2 { public static void main(String[] args) { int a = Integer.parseInt("150", 8); int b = Integer.parseInt("+200", 16); int c = Integer.parseInt("-344", 12); System.out.println("Value = "+a); System.out.println("Value = "+b); System.out.println("Value = "+c); } }
Output