Next : Write the following Question class and compile it - Then in your main quiz program create an ArrayList. Using the file reader program that we looked at read in a question, answers and correct answer from a file. Then construct a new question object and put it into your ArrayList.

Your file will look like this

Who was first President?
Adams
Jefferson
Lincoln
Washington
A
Who was etc.



public class Question
 {private String ques;
   private String ans1;
   private String ans2;
   private String ans3;
   private String ans4;
   private String correct;
   
   public Question(String q, String a1, String a2, String a3, String a4, String c)
     {  // write the constructor;


      }

    public String getQues()
      {}

      public String getAns1()
       {}

       public String getAns2()
       {}

      public String getAns3()
       {}

      public String getAns4()
       {}

      public StringgetCorrAnss()
       {}
}


When you get your ArrayList filled with questions from your file, 
write the quiz program.

When you get that working, Create another file with new questions 
and have your program work with that.