#define HOSTS char* hostname[MAX][] = {"j40b", ""}
Make a new class (Hosts), and put the host names in a hashtable or vector or string array, and initialize them in the constructor.
In the Java everything is Object, thus you can not "macro" complicated structures.
The
HOSTS variable1, var2...
does not work in Java, if the "HOSTS" is not an object or a primitive type.
I do not know other solution than a "wrapper" class.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.