java.lang.Long.toOctalString()


java.lang.Long.toOctalString()

package com.codingdict;



import java.lang.*;



public class LongDemo {



   public static void main(String[] args) {



      long l = 220;

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



      /* returns the string representation of the unsigned long value

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

      System.out.println("Octal = " + Long.toOctalString(l));

   }  

}