Adding new solutions for various problems in java.