I have written my program to get input from the user in the form of a string consisting of 8 numbers. I want to split the 8 numbers so I can access each of them individually. Is it kind of the same as Python where I'd use input[1] or so to access them, also how do I split them?
I'm not sure what way to go about it.
Scanner sc = new Scanner(System.in);
String input;
System.out.println("Please type your number in 8 bit binary form: ");
input = sc.nextLine();
The code runs fine so far, just don't know how to split the input into an array of 8 different numbers.