Small Java Programs