Tuesday, November 17, 2009

Java casting mayhem

Wanna cast a Double object to an Integer object? Not sure, but seems like this is the required casting:
(Integer)(int)(double)(Double)somedoubleobject

The (Integer) might be left away however. Well, most often.

No comments:

Post a Comment