I just start my Java learning in my first year of University. One problem requires "Note that compareTo accepts an Object as an argument, but you can reject non-MyString arguments using assert."
So how can I reject these non String argument?
assert (object instanceof String)?