starting Ex.2
Ex.2 - Java