General Java Programing Samples for reference