MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / list

Method list

Programs/ToDoList.java:12–21  ·  view source on GitHub ↗
(ArrayList<String> tasks)

Source from the content-addressed store, hash-verified

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) {

Callers 4

mainMethod · 0.95
chooseMethod · 0.95
addTaskMethod · 0.95
viewTaskMethod · 0.95

Calls 2

chooseMethod · 0.95
printMethod · 0.80

Tested by

no test coverage detected