Update Program1.6.2-Java

Everything implemented, but not counting more than 1 adjacent.