I want to take a string through console and store it in a character array [closed]
I am trying to convert a string to character array.
You mean like this?
String text = "foo";
char[] chars = text.toCharArray();
It's not clear what this has to do with the console (as per your title). Please clarify if this isn't what you're after.
精彩评论