title: 2D array using scanner, input ; Name Age Gender and to find the Oldest Person
body: <p>something like this but using 2D array to input Name, age, gender and to find the oldest person that the user inputted.</p>
  
  <pre><code>List&lt;String&gt; list = new ArrayList&lt;String&gt;();
  Scanner stdin = new Scanner(System.in);
  
  do {
      System.out.println("Current list is " + list);
      System.out.println("Add more? (y/n)");
      if (stdin.next().startsWith("y")) {
          System.out.println("Enter : ");
          list.add(stdin.next());
      } else {
          break;
      }
  } while (true);
  
  System.out.println("List is " + list);
  String[] arr = list.toArray(new String[0]);
  System.out.println("Array is " + Arrays.toString(arr));
  </code></pre>