Well, it's "sort of correct" if there is such a thing.

Why don't you do a few manual ('mental") calculations and write down the results.

Forget Java for a minute. Forget about any programming...