Create Program 1.6.1-Java

Java solution for Problem #1