//searching a word
    String search;
    System.out.println("Please enter a word you have found:");//word found from the 2d array grid
    search = kb.nextLine();
    
    System.out.println("First character of the word: "+search.charAt(0));//testing the split string
    System.out.println("Length of the word: "+search.length());//length for string
    
    for(int i=0; i<search.length(); i++){
      System.out.println(search.charAt(i));}
    
    int [] answerCheck = new int [search.length()];
    
    String searchLetter;
    String tableLetter;
    
    for (int row=0; row<table.length; row++){
      System.out.println("Loop "+row);
      searchLetter = String.valueOf(search.charAt(row));//convert char to string
      if (row>answerCheck.length){
        break;}//closes the for-loop
      for(int col=0; col<table[row].length; col++){
        tableLetter = table[row][col];
        if(tableLetter.equals(letter));{
        answerCheck[row] = 1;
        System.out.println(table[row][col]+" = "+letter);}}}
How can i find the same letter of a char string in a 2d array?