Java tutorial
public class Main { public static void main(String[] args) { System.out.println(Integer.toOctalString(7)); System.out.println(Integer.toOctalString(8)); System.out.println(Integer.toOctalString(9)); System.out.println(Integer.toOctalString(10)); System.out.println(Integer.toOctalString(100)); } }