static void findSum(int[] array) {
        int length = array.length;
        for (int i=0; i<length; i++) {
            for (int j=i+1; j<length; j++) {
                if (array[i] +array[j] == 10) {
                    System.out.println("pair:" + array[i] + "and" + array[j]);
                }
            }
        }
    }