title: Java: Creating New Strings During Runtime to Edit
body: <p>I'm creating a Mad Lib generator in Java. If you know what a Mad Lib is, this will be easier to understand. Also, I'm new to Java, so bear with me here. I want to make it so that each Mad Lib only asks for the number of adjectives, nouns, etc. that are in that specific one. For example, Mad Lib 1 may have 3 nouns, while Mad Lib 2 has 5 nouns. Is there a way to write a separate method to be run X times, creating X new strings (for the player to enter X nouns), and giving each string a different name? Just giving the strings names like nounA, nounB, nounC, or noun1, noun2, noun3 would be perfect. I need the final story to be able to differentiate between them. It will be really nice if each time I decide to add another Mad Lib to my program to just be able to loop an addNoun() method 8 times instead of writing </p>
  
  <pre><code>String nounA = scan.next();
  System.out.print("\f");
  String nounB = scan.next();
  System.out.print("\f");
  </code></pre>
  
  <p>...and so on every time for each part of speech. I have not yet learned about arrays, and I think this may have a solution involving that. Like I said, I'm new to Java, so if you try to show me anything advanced, please explain it in a way that I can understand it or find a simpler way to do it.</p>