title: Array and Java string error: [Ljava.lang.String;@19c42c4b
body: <p>I've created a program that allows a user to enter in Journal entries (up to 7 days) and then allows a person to call up one of those days after they enter in an entry. Unfortunately, this has left me with some weird string error that I'm not familiar with. </p>
  
  <p>Code as follows:</p>
  
  <pre><code>public class eDiary{
  public static void main (String args[]){
      int[] days = new int[7];//get our days
      days[0] = 1;//start with 1 and not 0
      days[1] = 2;
      days[2] = 3;
      days[3] = 4;
      days[4] = 5;
      days[5] = 6;
      days[6] = 7;
      String [] events = new String[7];//events for the days
      int i = 0;
  
      //asks for input and counts
     for(i=0; i&lt;7; i++){
      String event = Console.readString("Tell me the major event of day " + days[i] + "\n");
      events[i] = event; 
  
  }
  
   int journal_entry = Console.readInt("Enter what day you want to hear or Enter 0 to stop \n");
   while (journal_entry != 0) { 
       System.out.println(events);
       journal_entry = Console.readInt("Enter what day you want to hear or Enter 0 to stop \n");   
      //get r dun!
  </code></pre>
  
  <p>The input and output:</p>
  
  <pre><code>Tell me the major event of day 1
  one
  Tell me the major event of day 2
  two
  Tell me the major event of day 3
  thre
  Tell me the major event of day 4
  four
  Tell me the major event of day 5
  five
  Tell me the major event of day 6
  six
  Tell me the major event of day 7
  seven
  Enter what day you want to hear or Enter 0 to stop 
  1
  [Ljava.lang.String;@10181f5b
  Enter what day you want to hear or Enter 0 to stop 
  0
  </code></pre>
  
  <p>Howdy y'all!</p>
  
  <p>Thanks a lot for the quick responses. One thing it seems to be doing now is when replacing </p>
  
  <pre><code>System.out.println(events);
  </code></pre>
  
  <p>with </p>
  
  <pre><code>System.out.println(events[journal_entry]);
  </code></pre>
  
  <p>Now gives me input such as this:</p>
  
  <pre><code>Tell me the major event of day 1 
  first day
  Tell me the major event of day 2
  second day
  Tell me the major event of day 3
  third day
  Tell me the major event of day 4
  fourth day
  Tell me the major event of day 5
  fifth day
  Tell me the major event of day 6
  sixth day
  Tell me the major event of day 7
  seventh day
  Enter what day you want to hear or Enter 0 to stop 
  1//the day im asking for
  second day//spitting out the next day's entry instead of the first day's entry
  Enter what day you want to hear or Enter 0 to stop 
  0//this is me stopping it
  </code></pre>