Look at the API for the Object class
You'll want to look again. Remember that a class's public methods include all the public methods of its parent classes, and since this method is declared by the Object class, the parent of every Java class, you will need to become very familiar with it. As it happens Integer overrides Object's version of this method.
Originally Posted by MIA6
Of course.... that's how it's declared, right?
Is it a method that takes an Object and returns a boolean.
The API will tell you how it does this. Again, reread the API for Integer.
But how do you return a boolean? by comparing two objects, then determine true or false?
What do you mean give you an example?
String toString () returns a String object representing this Integer's value. Can you give me an example?
Integer myInteger = new Integer(5);
System.out.println(myInteger.toString()); // toString is not really necessary here but illustrates the point