version4 solutions

version 4 solutions java