Learn English – “Have this been” or “Had this been” provided

grammaticalitytenses

Which of the following sentences is grammatically correct?

Had this been a solution that can be provided in Java 5 and above, the overloaded replace(charSequence, charSequence) may be used.

Have this been a solution that can be provided in Java 5 and above, the overloaded replace(charSequence, charSequence) may be used.

Best Answer

The meaning is ambiguous, but here is one possibility:

Had this been a solution that could be provided in Java 5 and above, the overloaded "replace(charSequence, charSequence)" could have been used.

The tenses are inconsistent in the first example, and "Have this been..." in the second example is not normally used.