Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Program2
- {
- public void redundantLogic(int x)
- {
- if (x % 2 == 0);
- {
- System.out.println("Even!");
- }
- else if (x % 4 == 0)
- {
- System.out.println("Multiple of 4!");
- }
- else if (x % 2 == 1 && x % 3 == 1)
- {
- System.out.println("x is odd, and is one more than a multiple of three.");
- }
- }
- }
Add Comment
Please, Sign In to add comment