import java.util.*;
public class S1 {
public static void main(String[] args) {
String twoDm[][]= new String[3][3];
int i,j;
int[] c=new int[2];
//int []d =new int[1];
Scanner sc=new Scanner(System.in);
for(i=0;i<3;i++){
for(j=0;j<3;j++){
twoDm[i][j]=sc.next();
String x= twoDm[i][j];
if(x=="aa"){
c[0]=i;//values here are not getting into array c//
c[1]=j;
}
for(int f:c){
System.out.println(f);
}
}
The array C while printing shows 00 why are the values of i and j not getting into array what can be the problem