{{#items}}

{{text}}

{{/items}} {{ctaText}}

{{#items}} {{/items}}

showing results for - "java convert octal to decimal"

Giulio

14 Apr 2018

```
1import java.util.Scanner;
2public class OctalToBinaryJava
3{
4 public static void main(String[] args)
5 {
6 Scanner sc = new Scanner(System.in);
7 System.out.println("Please enter octal number: ");
8 int octal = Integer.parseInt(sc.nextLine(), 8);
9 String strBinary = Integer.toBinaryString(octal);
10 System.out.println("Binary value is: " + strBinary);
11 sc.close();
12 }
13}
```

Iris

24 Feb 2016

```
1public class OctalToDecimalDemo
2{
3 public static void main(String[] args)
4 {
5 String strOctal = "141";
6 // converting octal to decimal number using Integer.parseInt() method
7 int decimal = Integer.parseInt(strOctal, 8);
8 System.out.println(decimal);
9 }
10}
```

similar questions

2 decimal places print format javahexadecimal to octal in javadecimal up to 6 places in javajava import decimalformatoctal to hexadecimal in javaprint up to 2 decimal in javarecursion java program to convert decimal to octalbinary to octal conversion java programjava 2 decimalsjava program convert decimal to octal using while loopandroid java convert double to 2 decimal placesstatic method java convert decimal to octalhow to get 2 decimal places in javaspecify decimal places javajava program to print decimal to octal conversionjava convert hex to decimalbinary to octal in javajava program to print hexadecimal to decimal number conversionjava string to decimalset decimal point in javaqueries leading to this page

how to turn deciimal to octal javajava program to convert octal to decimaljava convert octal to decimalbinary to octal javaconvert decimal to octal in javaprint decimal to octal number in javajava program binary to octal octal to decimal in javaoctal to binary in javaconvert octal to decimalprogram to convert binary to decimal in javaconvert decimal number into octal number in javaoctal to binary methodoctal to decimal java programhow to convert a octal number to decimal in javahow to convert e notation to decimal javahow to convert octal to binary in javaconvert decimal to fraction javaoctal to int in javaoctal to decimal javaconvert octal to decimal javaoctal to deimal javaconvert integer into decimal in javaconvert octal to integer javabinary to octal java program how to convert decimal to bigdecimal in javaoctal to binary javasconverting from octal to decimalwrite a java program to convert a decimal number to octal numberdecimal to octal javahow to convert from decimal to binary in javajava program for decimal to octal conversionjava convert decimal to octaldecimal to octal code javabinary to octal in javaconvert octal to decimal in javaoctal to binary javaoctal to decimaldecimal to octal in javadecimal to octal conversion in javajava convert octal to decimal your answer for

you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content

please ensure to add code which is syntactically corrent and executes properly

ask question on maxinterview

you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content

please be clear, to the point and respectful