Java SE training codes