E
El Duderino
Hello all
I'm currently working on a client which needs to compare a server
answer with a local reference string. Does anybody know if there is
a method which can just read in the first three characters of
a string? For example is there something like:
myServerAnswer.beginsWith("XYZ")
Where 'myServerAnswer' contains the data received from the server.
I would know how to code it by creating a an instance of Vector
from java.util.Vector and the using elementAt(postition).
Is there an easier way to accomplish this?
I'm currently working on a client which needs to compare a server
answer with a local reference string. Does anybody know if there is
a method which can just read in the first three characters of
a string? For example is there something like:
myServerAnswer.beginsWith("XYZ")
Where 'myServerAnswer' contains the data received from the server.
I would know how to code it by creating a an instance of Vector
from java.util.Vector and the using elementAt(postition).
Is there an easier way to accomplish this?