// Importing all classes from java.util package
import java.util.*;
 
// Main class
class CHQs {

    // Main driver method
    public static void main(String[] args)
    {
        // Creating an ArrayList of String type
        // Type safe ArrayList
        ArrayList<String> Qs = new ArrayList<String>();
 
        // Adding elements to above object created
        // Custom input elements
        Qs.add("What is a correct syntax to output 'Hello World' in Java?");
        Qs.add("Java is short for 'JavaScript'. True or False?");
        Qs.add("How do you insert COMMENTS in Java code?");
        Qs.add("Which data type is used to create a variable that should store text?");
        Qs.add("How do you create a variable with the numeric value 5?");
        Qs.add("How do you create a variable with the floating number 2.8?");
        Qs.add("Which method can be used to find the length of a string?");
        Qs.add("Which method can be used to find the length of a string?");
        Qs.add("Which operator is used to add together two values?");
        Qs.add("The value of a string variable can be surrounded by single quotes. True or False?");
        Qs.add("Which operator can be used to compare two values?");
        Qs.add("To declare an array in Java, define the variable type with:");
        Qs.add("Do array indexes start with 1 or 0?");
        Qs.add("How do you create a method in Java?");
        Qs.add("Which keyword is used to create a class in Java?");
 
        System.out.println("\tOur current Codehoots Question List:");
        // Print and display the elements of ArrayList
        for (int i = 0; i < Qs.size();i++) 
	      { 		      
	          System.out.println(Qs.get(i)); 		
	      }   
        System.out.println();
 
        // Removing an element from the array
        System.out.println("\tThere's a duplicate question, so let's get rid of it:");
        Qs.remove(7); 
        for (int i = 0; i < Qs.size();i++) 
	      { 		      
	          System.out.println(Qs.get(i)); 		
	      }  
          System.out.println();

          // Adding an element to the array
        System.out.println("\tLet's add another question:");
        Qs.add("What is the correct way to create an object called myObj of MyClass?");
        // Print and display the elements of ArrayList one by one
        for (int i = 0; i < Qs.size();i++) 
	      { 		      
	          System.out.println(Qs.get(i)); 		
	      }  
    }
}
CHQs.main(null);
	Our current Codehoots Question List:
What is a correct syntax to output 'Hello World' in Java?
Java is short for 'JavaScript'. True or False?
How do you insert COMMENTS in Java code?
Which data type is used to create a variable that should store text?
How do you create a variable with the numeric value 5?
How do you create a variable with the floating number 2.8?
Which method can be used to find the length of a string?
Which method can be used to find the length of a string?
Which operator is used to add together two values?
The value of a string variable can be surrounded by single quotes. True or False?
Which operator can be used to compare two values?
To declare an array in Java, define the variable type with:
Do array indexes start with 1 or 0?
How do you create a method in Java?
Which keyword is used to create a class in Java?

	There's a duplicate question, so let's get rid of it:
What is a correct syntax to output 'Hello World' in Java?
Java is short for 'JavaScript'. True or False?
How do you insert COMMENTS in Java code?
Which data type is used to create a variable that should store text?
How do you create a variable with the numeric value 5?
How do you create a variable with the floating number 2.8?
Which method can be used to find the length of a string?
Which operator is used to add together two values?
The value of a string variable can be surrounded by single quotes. True or False?
Which operator can be used to compare two values?
To declare an array in Java, define the variable type with:
Do array indexes start with 1 or 0?
How do you create a method in Java?
Which keyword is used to create a class in Java?

	Let's add another question:
What is a correct syntax to output 'Hello World' in Java?
Java is short for 'JavaScript'. True or False?
How do you insert COMMENTS in Java code?
Which data type is used to create a variable that should store text?
How do you create a variable with the numeric value 5?
How do you create a variable with the floating number 2.8?
Which method can be used to find the length of a string?
Which operator is used to add together two values?
The value of a string variable can be surrounded by single quotes. True or False?
Which operator can be used to compare two values?
To declare an array in Java, define the variable type with:
Do array indexes start with 1 or 0?
How do you create a method in Java?
Which keyword is used to create a class in Java?
What is the correct way to create an object called myObj of MyClass?