MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / takingInput

Method takingInput

Java/Array/PairSum.java:66–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 }
65
66 public static int[] takingInput() {
67 Scanner sc = new Scanner(System.in);
68 int n = sc.nextInt();
69 int[] arr = new int[n];
70 for (int i = 0; i < n; i++) {
71 arr[i] = sc.nextInt();
72 }
73 return arr;
74 }
75
76 public static void main(String[] args) {
77 int[] arr = takingInput();

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected