Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Driver
- {
- public static void main(String[] args)
- {
- int iListLength;
- Scanner scan = new Scanner(System.in);
- System.out.println("Please enter the amount of items in your todo list: ");
- iListLength = scan.nextInt();
- String[] toDoList = new String[iListLength];
- for (int count = 1; count < iListLength; count++)
- {
- System.out.println("Please enter the name of the priority " + count
- + " task: ");
- toDoList[count] = scan.nextLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement