I need to store input1 input2 input3 in char array of given same size.
public static void evalCharArray(int size){
System.out.println("please enter any three string not exceed than size"+size);
Scanner sc=new Scanner(System.in);
String input1=sc.nextLine();
String input2=sc.nextLine();
String input3=sc.nextLine();
//what i need is-I want to store these input string in three separate charArray of same length(ie of int size)
}
If i am using input1.toCharArray() input2.toCharArray() input3.toCharArray() these are giving me array of different size based on input.
please enter any three string not exceed than sizewhat does that mean?sizecharacters?size.