i am trying to add a scanner so user input is accepted but im running into an issue with this algorithm that i dont know how to solve. The line
char[] charArray =