
i want to know how to convert a octal to binary number

Here is a java example that converts octal to binary.
import java.io.*;
class ConvertOctalToBinary{
public static void main(String[] args)throws Exception{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter octal number: ");
String oct = br.readLine();
int i= Integer.parseInt(oct,8);
String binary=Integer.toBinaryString(i);
System.out.println(binary);
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.