title: Making a Fill In Questionaire Java Excercise
body: <p>Before I begin I want to point out that I'm in severe stress and frustration due to not being able to make this excercise. I have searched and asked all over the internet and I feel hopeless. As my last hope I came to Stack Overflow to ask this question. I do not understand the excercise. It is a very strange one. I would be forever grateful to you if you could assist me in making this excercise that I am stuck with for a month. My life really depends on this. Please help me.</p>
  
  <pre><code>public class Question {
      private String text;
      private String answer;
  
      public Question() {
          text = "";
          answer = "";
      }
  
      public void setText(String questionText) {
          text = questionText;
      }
  
      public void setAnswer(String correctResponse){
          answer = correctResponse;
      }
  
      public boolean checkAnswer(String response){
          return response.equals(answer);
      }
  
      public void display() {
          System.out.println(text); 
      }
      }
  </code></pre>
  
  <p>Im going to add a class FillInQuestion to this class. Such a question is constructed with a string that contains the answer, surrounded by _ _, for exam ple, The inventor of Java was <em>James Gosling</em>. The question should be displayed as The inventor of Java was _____. But I'm not sure how I could make this? Could I receive the way to make a string that contains the answer in such a way.</p>
  
  <p>The question is cited as "Add a class FillInQuestion to the question hierarchy of Section 9.1. Such a question is
  constructed with a string that contains the answer, surrounded by <code>_ _</code>, for example,
  "<code>The inventor of Java was _James Gosling_</code>". The question should be displayed as
  <code>The inventor of Java was _____</code>"</p>
  
  <p>How can I construct a string that contains the answer like that?
  How can I display <code>_James Gosling_</code> like <code>____</code>? 
  What do they mean. I dont understand.</p>
  
  <p>Thank you.</p>