Online Java Compiler By
JavaTpoint.com
public class IntegerToOctalStringExample1 { public static void main(String[] args) { int i = 224; System.out.println("Number = " + i); //returns the string representation of the integer value in octal form System.out.println("Octal representation is = "+ Integer.toOctalString(i)); } }
Output