SyntaxFix
Write A Post
Hire A Developer
Questions
You should pass a Class...
Class
private void foo(Class<?> t){ if(t == String.class){ ... } else if(t == int.class){ ... } } private void bar() { foo(String.class); }