title: Filling a 2D array in Java
body: <p>I am new to java and I am struggling immensely! I've written the following code but keep getting errors. All I am trying to do at the moment is fill a 5x5 matrix with the letter A. Here's what I have so far, I am not sure if I need to post the errors as well? Any help would be really greatly appreciated. </p>
  
  <pre><code>public class Encryption {   
      private String Unencoded, FiveLetterKeyword, EncryptedMessage;
  
      //constructor method
      public Encryption(String U, String F, String E)
      {
          Unencoded = U;
          FiveLetterKeyword = F;
          EncryptedMessage = E;
  
      }
      //create 2D string array 5 by 5
      String Encrypt [][] = new String[5][5];        
  
      //create string filled with all letters of the alphabet
      String String = new String
          ("A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z");
  
  
  
      //method for loop to print out the matrix
      public static void matrix()
      //for loop to create matrix rows and columns        
      {
          for (int row = 1; row &lt; Encrypt.length; row++)
          {
              for (int column = 1; column &lt; Encrypt[row].length; column++)
  
              System.out.print(Encrypt[row][column] + " ");
          }       
      }
  
      //filling the array with the letter A
      public char Encrypt(char Encrypt[][])
      {
          //char[] alpha = alphabets.toCharArray;
  
          //declaring variable to fill array with A           
          char aChar = "A";
  
          for (int row = 1; row &lt; Encrypt.length; row++)
          {
              for (int column = 1; column &lt; Encrypt.length; column++)
  
              return Encrypt;
          }   
      }   
  }
  </code></pre>