Examples of my Java code