Cuong Pham

Cuong Pham

  • NA
  • 18
  • 1.4k

Restrict type with Generics Constraints

Aug 16 2013 12:03 AM
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.

Answers (6)