first homework
Update prog2.java
homework#2