Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class NumberOperations {
- private int number;
- public String oddsUnder;
- public String powersTwoUnder;
- public int compareNumber;
- public int isGreater;
- public NumberOperations(int numberIn) {
- number = numberIn;
- }
- public int getValue() {
- return number;
- }
- public String oddsUnder() {
- return oddsUnder;
- }
- public String powersTwoUnder() {
- return powersTwoUnder;
- }
- public int isGreater(int compareNumber) {
- return compareNumber;
- }
- public String toString() {
- return number + "";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement