Update Program1.6.2-Java

Fully functioning