A conding challenge for Java courses