My method gets Class as a parameter and I have to check that one my variables is of type class.
Volvo v1 = new Volvo();
Class aClass = v1.getClass();
check(aClass);
inside I need to do something like
v2 instanceof aClass ? "True" : "False");
but this doesn;t compile .