update post  How java Code works