Some Java exercises ACM Style problems.