(ArrayList<String> tasks)
| 10 | } |
| 11 | |
| 12 | public static void list(ArrayList<String> tasks) { |
| 13 | Scanner sc = new Scanner(System.in); |
| 14 | System.out.print("Function you want to apply(1-4):\n" |
| 15 | + "1- View\n" |
| 16 | + "2- Add\n" |
| 17 | + "3- Delete All Tasks\n" |
| 18 | + "> "); |
| 19 | int desiredFunction = sc.nextInt(); |
| 20 | choose(desiredFunction, tasks, sc); |
| 21 | } |
| 22 | |
| 23 | public static void choose(int desiredFunction, ArrayList<String> tasks, Scanner sc) { |
| 24 | if (desiredFunction == 1) { |