1// obj instanceof Class
2
3/*example*/
4
5String str = "a String made by the String class";
6
7if(str instanceof String) System.out.println("This is True");
8if(str instanceof float) System.out.println("This will never be on your screen");
9
10// You can do this with any type of class you want!