problems solved in java