accessSpecifier class GenericClassName<TypeVariable1, TypeVariable2, . . .>{ constructors methods fields}
public class Pair<T, S>{ . . .}