title: Why is my bufferedReader reading `java.lang.String;@70177ecd` from a text file?
body: <p>I have a <code>bufferedReader</code> which is being used to read lines of text from a text file, however, the only line of text that the <code>bufferedReader</code> is reading is <code>[Ljava.lang.String;@70177ecd</code> my code is below:</p>
  
  <pre><code>private static final String dirToWriteFile = System.getProperty("user.dir") + "/VirtualATM.txt";    //File path for main user detail store.
  FileInputStream fin = new FileInputStream(dirToWriteFile);
  BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fin));
  String lineFromFile = null;
  lineFromFile = bufferedReader.readLine();
  String [] lineFromFileToCheck = lineFromFile.split("\\s+");
  do{
      for(i = 0; i &lt; lineFromFileToCheck.length; i++){
          System.out.println(lineFromFileToCheck);
          /************* Error because "[Ljava.lang.String;@70177ecd" is being read from file ******************/
          if(lineFromFileToCheck[i].matches(cardNumberStr)){
              accountNoFound = true;
          }
          if(accountNoFound == false &amp; i &gt; 10){
              break;
          }
      }
      if(accountNoFound == true){
          for(j = 0; j &lt; lineFromFileToCheck.length; j++){
              if(lineFromFileToCheck[j].matches(pinToCheck)){
                  pinNoFound = true;  //if pin matches exactly what is inputted by user
                  break;
              }
          }
          lineFromFile = bufferedReader.readLine();
          if (lineFromFile != null) {
              lineFromFileToCheck = lineFromFile.split("\\s+");
          }
      }
      if(pinNoFound == false &amp; lineFromFile == null){
          JOptionPane.showMessageDialog(null, "Error! Invalid input length/type. Try again...", "Error", JOptionPane.ERROR_MESSAGE);
      }
      if(pinNoFound == true &amp; accountNoFound == true &amp; lineFromFile == null){
          break;
      }
  }while(accountNoFound == false | pinNoFound == false | lineFromFile != null);
  fin.close();
  bufferedReader.close();
  </code></pre>
  
  <p>If anyone could suggest what is wrong with the reader and what exactly <code>[Ljava.lang.String;@70177ecd</code> means and what causes it be returned by the <code>BufferedReader</code> that would be great!</p>