getting strange int values

Like I said, enough of the hand-waving.

Do you want help or not?

(Does the "Java" in your handle refer to the island, the coffee or the programming language?)