| 2 | package Arrays; |
| 3 | |
| 4 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…