for(i=0; i<=2; i++){
if(i=0){
System.Out.println("Input x: ");
int x=input.nextInt();
if(x==1){
char[] a={'A','B','C'};
}
else if(x=2){
char[] a={'D','E','F'};
}
else{
char[] a={'G','H','I'};
}
}
Values of a[] will change 3 times because of for loop & the values decided by input x. My question here is, How can I store values of a[] in every loop to another variable and make another multidimensional array with those values????? please anyone help me for this. Thanks in advance.