title: putting a small program in a string in an array
body: <p>im kinda new to programming and i made this small programm with a question and i have got a few other questions following that one, the thing is that i want to put it in an array. now from what i have understood i have to put it in a string to then put it in a array with the rest of my questions. i put the code from one of the question so you guys can tell me if what im asking is even possible :) thanks!</p>
  
  <p>I want to ask the user a number of questions. If I have only one question, the code would look like this:</p>
  
  <pre><code>import java.io.*;
  
  public class Bycicle {
      public static void main(String[] args) throws IOException {
  
          BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
          int num1;
          // first question
          System.out.println("\n is the bycicle moving? : ");
          System.out.println("1 : yes.");
          System.out.println("2 : no.");
          System.out.flush();
          num1 = Integer.parseInt(stdin.readLine());
          if (num1 == 1) {
              System.out.println("\n good, keep going");
          } else if (num1 == 2) {
              System.out.println("\n get a move on then!\n \n \n END");
              System.exit(0);
          }
      }
  }
  </code></pre>
  
  <p>How can I put a number of questions and answers into an array?</p>