Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- A class to compare numbers.
- */
- public class Numbers
- {
- /**
- Checks whether three numbers are all different
- @return true if none of the numbers a, b, or c are equal to another
- */
- public boolean allDifferent(int a, int b, int c)
- {
- if(a == b || a == c){return false;}
- if(b == c){return false;}
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement