[java] Testing for Objects Existance
I know in C++ I can say
person bob;
if (bob) {
do something
}
how do I do something similar in java? I want to create a server socket if a suitable server exists to connect to. However I want this to scan all TCP ports (10.X.0.Y) and link to the first available port. How would I do this?
|