Sample codes for Java SE