Try a W3Schools Java Exercise
here