Added S2 Java with complete tests

Need some commentz