i need to make a switch statement that can use the appropriate conversion method. here is my code
public class ExerciseTwo
{
public static void main (Strings[] args)
{
Scanner input = new scanner(system.in);
String[] binary = { "0","1","2","3","4","5","6","7","8"};
for (c = 0; c < array.length; counter++)
binary[] = input.nextInt();
System.out.println("Enter number between 0 and 8");
number = input.nextInt();
system.out.printf("the number", "number_given", "is", "binaryVersion", "binary");
}
}