write a java program to convert a decimal number to octal number code example
Example: 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);
}
}