thinking java demo