title: make a task list using java, to add, edit, remove or exit from the program using switch statements and loops
body: <p>Create a program that allows a user to add, remove, edit, and list to-do items by presenting the user with a menu similar to the following:</p>
  
  <p>Please choose an option:
  (1) Add a task.
  (2) Remove a task.
  (3) Update a task.
  (4) List all tasks.
  (0) Exit.</p>
  
  <p>If the user chooses to add a task, the program should prompt for a description of the task and add it to the collection of tasks. If the user chooses to remove a task, the program should ask the user which item to remove and remove it from the collection of tasks. If the user chooses to update a task, the program should ask which task will be updated and for a new description of the task.  The program should loop until the user chooses to exit. </p>
  
  <pre><code>package com.vanderkooi1.Project1;
  
  import java.util.Scanner;
  
  public class Main {
      Scanner input = new Scanner(System.in);
      String choice;
  
      do {
          //Splash screen with options
          System.out.println("Please Choose an option");
          System.out.println("");
          System.out.println("(1) Add a task ");
          System.out.println("(2) Remove a task ");
          System.out.println("(3) Update a task ");
          System.out.println("(4) List all tasks ");
          System.out.println("(0) Exit ");
  
          switch (choice) {
          case "1":
              System.out.println("Add a task ");
              choice = input.nextLine();
              break;
          case "2":
              System.out.println("Remove a task");
              choice = input.nextLine();
              break;
          case "3":
              System.out.println("Update a task");
              choice = input.nextLine();
              break;
          case "4":
              System.out.println("List all tasks");
              choice = input.nextLine();
              break;
          }
      }
  
      while (choice &gt; 0) {
          System.out.println("Exit");
      }
  </code></pre>
  
  <p>my do statement says there is an unknown token error and my while statement has unknown class 'choice'.</p>