Hi,
I'm trying to create an array for converting Octal number from input to Binary later...print out for table look-up. Please help!
import java.util.*; // Scanner class
public class check1
{
public static void main(String [] args)
{
int i;
String biArray[]={"000", "001", "010", "011", "100", "101", "110", "111"};
for(i=0; i<biArray.length; i++)
{
Scanner input= new Scanner(System.in);
System.out.println("Enter the Octal number: ");
int OctNum=input.nextInt();
biArray[i]= Interger.parseInt(OctNum);
}
for(i=0; i<biArray.length; i++)
System.out.println("Octal number of "+i+"is "+biArray[i]+"in binary");
}
}
After compiled , this is what I have
check1.java:17: cannot find symbol
symbol : variable Interger
location: class check1
biArray= Interger.parseInt(OctNum);
^
1 error