import java.io.RandomAccessFile;
import java.io.File;
import java.io.IOException;
import java.io.FileNotFoundException;

public class PersonTester{


  //retuens a random line(name since there is a name on each line) form a file and retuensd it as a string
  //this method is modified form a stackoverflow post.
  //link to origanal post http://stackoverflow.com/a/19850005
  
  //NOTE only 4080 names can be generated after that the name fred will be used
  public static String getRandomName()
  {
    String name = "FRED";
    try{
      RandomAccessFile f = new RandomAccessFile("namelist", "r");
      long randomLocation = (long) (Math.random() * f.length());
      f.seek(randomLocation);
      f.readLine();
      name = f.readLine();
    
    } catch(FileNotFoundException e) {
      System.out.println("Error: namelist File Not found");
    } catch(IOException e) {
      System.out.println("Error: IO Exeption");
    }
    
    return name;
  }

  public static void main(String[] args) {
    
    for(int i=0;i<4080;i++) {
      String name = getRandomName();
      System.out.println(i+" - "+name);
    }
  }
}

@@ -1,20 +1,152 @@
+//import java.util.Scanner;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Arrays;%0A//import java.util.Random;%0A%0A
 import java.io.Rando
@@ -559,16 +559,21 @@
 hat the 
+%0A  //
 name fre
@@ -586,16 +586,56 @@
  be used
+ and filenotfound error wqill be printed
 %0A  publi
@@ -665,18 +665,16 @@
 omName()
-%0A 
  %7B%0A    S
@@ -692,11 +692,11 @@
 = %22F
-RED
+red
 %22;%0A 
@@ -1097,25 +1097,24 @@
 );%0A    %7D%0A   
- 
 %0A    return 
@@ -1127,126 +1127,274 @@
   %7D%0A
-%0A  public static void main(String%5B%5D args) %7B%0A    %0A    for(int i=0;i%3C4080;i++) %7B%0A      String name = getRandomName(
+  public static String getFullName() %7B%0A    return getRandomName()+%22 %22+getRandomName();%0A  %7D%0A%0A  public static void main(String%5B%5D args) %7B%0A    %0A    ArrayList%3CPerson%3E people = new ArrayList%3CPerson%3E();%0A    people.add(new Person(getFullName()));%0A    people.get(0).say(%22%22
 );%0A
-  
     
@@ -1413,31 +1413,33 @@
 rint
-ln(i+%22 - %22+name
+(%22In a small town%22
 );%0A    
-%7D
 %0A  %7D

Update PersonTester.java