I was thinking if there exists a better/nicer way to negate an instanceof in Java. Actually, I\'m doing something like:
instanceof
if(!(str instanceof String))
I don't know what you imagine when you say "beautiful", but what about this? I personally think it's worse than the classic form you posted, but somebody might like it...
if (str instanceof String == false) { /* ... */ }