Adding JL solution in java