if ((x==y && y!=z) || (y==z && x!=y) || (x==z && y!=z)) System.out.println("Two Match"); else System.out.println("No Match");