Modify Java memory display

To indicate memory out of bound correctly
Merge pull request #8 from zvn/master

Modify Java memory display