Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ArgsProcessor ap = new ArgsProcessor(args);
- int x = ap.nextInt("Enter x:");
- int y = ap.nextInt("Enter y:");
- int z = ap.nextInt("Enter z:");
- if (x==y && (y!=z && x!=z)){
- System.out.println("Two Match");
- }
- else if (y==z && (x!=y && x!=z)){
- System.out.println("Two Match");
- }
- else if (x==z && (y!=z && x!=z)){
- System.out.println("Two Match");
- }
- else{
- System.out.print("No match");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement