MCPcopy Create free account
hub / github.com/apna-college/Alpha / main

Method main

11_ArrayLists/Swap.java:8–19  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

6 list.set(idx2, temp);
7 }
8 public static void main(String args[]) {
9 ArrayList<Integer> list = new ArrayList<>();
10 list.add(2);
11 list.add(5);
12 list.add(9);
13 list.add(3);
14 list.add(6);
15
16 System.out.println(list);
17 swap(list, 1, 3);
18 System.out.println(list);
19 }
20}

Callers

nothing calls this directly

Calls 2

swapMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected