Java coding examples