Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class Driver
  4. {
  5.   public static void main(String[] args)
  6.   {
  7.     int iListLength;
  8.  
  9.     Scanner scan = new Scanner(System.in);
  10.     System.out.println("Please enter the amount of items in your todo list: ");
  11.     iListLength = scan.nextInt();
  12.     String[] toDoList = new String[iListLength];
  13.  
  14.     for (int count = 1; count < iListLength; count++)
  15.     {
  16.       System.out.println("Please enter the name of the priority " + count
  17.                          + " task: ");
  18.       toDoList[count] = scan.nextLine();
  19.     }
  20.   }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement