Adding Any conversion to any
Code:
int base =-2;
while(base<2|base>16){
System.out.println("Enter a Base from 2-16 ONLY OR LANG!: ");
base = Integer.parseInt(k.next());
if(base<2){
System.out.println("Your Inputted Base is too low please Try again");
}else if(base>16){
System.out.println("Your Inputted Base is too high please Try again");
}
}
int array[] = new int[2];
for(int num =0 ; num <= array.length ;num++){
if
System.out.println("Input Number to be Added 2 times only: ");
String number = k.next();
num = Integer.parseInt(number);
}
}
}
im starting a program that
will add my selected base like
if i choose binary
it will add those numbers
and if i choose octal or any 2-16 base
it will add those numbers *same base*
my problem now is
the inputting of numbers
something is not right
because if i inputted 12313 it won't ask for a send batch of number.