Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void conditionalTest(int a, int b) {
- if ((a > 0) && (b > 0)) {
- if (a > b) System.out.println("A");
- else System.out.println("B");
- } else if ((b < 0) || (a < 0)) System.out.println("C");
- else System.out.println("D");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement