How to check type of variable in Java?
<p>How can I check to make sure my variable is an int, array, double, etc...? </p>

<p>Edit: For example, how can I check that a variable is an array? Is there some function to do this?</p>
