ankursaxena
Programmer
Hi, I have 2 objects coming in to the socket, I have to see what class is it, whether it is Vector or Alarms class..how do i do this? If I have read the object into Object obj variable.
Thanks
Ankur
Thanks
Ankur
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Object incoming ...
if (incoming instanceof java.util.Vector) {
} else if (incoming instanceof Alarm) {
} else {
}