I assume the Class API you mean is for Long
then you want
Long.toString(orderID);
The static indicates this is a class method, which can be invoked
without obtaining a actual instance by prefixing the class name.
Otherwise, for a instance method, you would need something like
Long l = new Long();
long whatever = l.toString();
The only remaining exception would be if your class was itself a
subclass of Long. Then and only then would your usage work as shown.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden