Search:

Type: Posts; User: wetwater

Search: Search took 0.22 seconds.

  1. Replies
    7
    Views
    1,225

    Re: Confused with constructor

    well my instructor said i need to include the following things in my MyInteger class


    • An int data field named value that stores the int value represented by this object.
    • A constructor that...
  2. Replies
    7
    Views
    1,225

    Re: Confused with constructor

    ok sorry here is the error message.
    You can ignore the parseInt messages.

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    The method isEven(int) in the type...
  3. Replies
    7
    Views
    1,225

    Confused with constructor

    basically it is giving me an error at the 2nd line new MyInterger(5)
    Im not sure how to make the constructor to get rid of the errors when im calling myInteger, isEven,isOdd, isPrime in the main...
Results 1 to 3 of 3