Java tutorial
public class Main { public static void main(String[] args) { System.out.println(Integer.valueOf("100", 2)); System.out.println(Integer.valueOf("100", 8)); System.out.println(Integer.valueOf("100", 10)); System.out.println(Integer.valueOf("100", 16)); } }