java.lang.Integer.toOctalString()


java.lang.Integer.toOctalString()

package com.codingdict;



import java.lang.*;



public class IntegerDemo {



   public static void main(String[] args) {



      int i = 170;

      System.out.println("Number = " + i);



      /* returns the string representation of the unsigned integer value

         represented by the argument in octal (base 8) */

      System.out.println("Octal = " + Integer.toOctalString(i));

   }  

}