Java classic programming example source code 100 cases