Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. public class NumberOperations {
  2.  
  3.    private int number;
  4.    public String oddsUnder;
  5.    public String powersTwoUnder;
  6.    public int compareNumber;
  7.    public int isGreater;
  8.    
  9.    public NumberOperations(int numberIn) {
  10.       number = numberIn;
  11.    }
  12.  
  13.    public int getValue() {
  14.       return number;
  15.    
  16.    }
  17.    
  18.    public String oddsUnder() {
  19.       return oddsUnder;
  20.    
  21.    }
  22.    
  23.    public String powersTwoUnder() {
  24.       return powersTwoUnder;
  25.    }
  26.    
  27.    public int isGreater(int compareNumber) {
  28.       return compareNumber;
  29.    
  30.    }
  31.    
  32.    public String toString() {
  33.       return number + "";
  34.    
  35.    }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement