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

Class PairsinArray

1_Arrays/PairsinArray.java:4–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2package Arrays;
3
4public class PairsinArray {
5 public static void printPairs(int arr[]) {
6 for(int i=0; i<arr.length; i++) {
7 for(int j=i+1; j<arr.length; j++) {
8 System.out.print("("+arr[i]+","+arr[j]+") ");
9 }
10 System.out.println();
11 }
12 }
13 public static void main(String args[]) {
14 int arr[] = {1, 2, 3, 4, 5, 6};
15 printPairs(arr);
16 }
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…