Examples of source code while learning Java