Sorry, same question, but slightly different topic, so thought I'd start a new thread. Is one better than the other for any reason? My book does not offer an opinion. Thanks!
Hello. My name is Inigo Montoya. You killed my father. Prepare to die.
Comparable is an interface:public int compareTo(T o);
You write that when you write some class, or you assure that it is present in some class you are going to store in an ordered collection.
the .equals method is used where == won't work, the double equals (==) simple gives the reference address of an object, it will work on primitives such as integer, double and whatever. It will not work on anything that is an instance of a class, at least on in the traditional sense, instanceof is often used where one would initially consider ==
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
a bit of art, as a gift, that will fit in a stocking