Answers for "decimal to octal java"

1

Java convert octal to decimal

public class OctalToDecimalDemo
{
   public static void main(String[] args)
   {
      String strOctal = "141";
      // converting octal to decimal number using Integer.parseInt() method
      int decimal = Integer.parseInt(strOctal, 8);
      System.out.println(decimal);
   }
}
Posted by: Guest on January-01-2021
0

Java program to print decimal to octal conversion

public class Main
{ 
public static void main(String args[])
{ 
System.out.println(Integer.toOctalString(15)); 
}
}
Posted by: Guest on June-30-2021

Code answers related to "decimal to octal java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language