Search:

Type: Posts; User: adnan.alvee

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    1,949

    Re: Cannot print boolean value from class!

    Norm my professor says to
    Display the object by invoking its toString method.

    How do I do that? I just displayed it using print statement but how do I do it with toString?
  2. Replies
    8
    Views
    1,949

    Re: Cannot print boolean value from class!

    Some one help please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  3. Replies
    8
    Views
    1,949

    Re: Cannot print boolean value from class!

    Here is the full error message in Bold

    Public method isOn cannot be applied to given types;
    required: boolean
    found: no arguements
    reason: actual and formal arguement lists differ in length
  4. Replies
    8
    Views
    1,949

    Cannot print boolean value from class!

    This is my assignment
    Write a class named Fan to model fans. The properties are speed, on, radius, and color. You need to provide the accessor methods for the properties, and the toString method...
Results 1 to 4 of 4