Restrict type with Generics Constraints
Hi everyone,
I want to build a example about Generics Constraint with the question:
How will the complier catch a error when user input string type but reasonable with int, float, double, long type?
Can you help me this problem?
Many thanks.