B
Bob Campbell
I am new at Java programming and have gotten stuck on a problem
for which I am sure there is a simple solution.
I have a string (resp).
I need to create another string (resp2) which is the same thing as
resp, but with the 2-byte length of resp (in hex) at the beginning.
I've been able to do this in ASCII but have not found the right
combination of Java classes and methods and stuff to be able to
generate a String with the value in hex?
In C, this would just be strlen, sprintf, and strcat.
Is it possible to do this in Java?
Thanks!
for which I am sure there is a simple solution.
I have a string (resp).
I need to create another string (resp2) which is the same thing as
resp, but with the 2-byte length of resp (in hex) at the beginning.
I've been able to do this in ASCII but have not found the right
combination of Java classes and methods and stuff to be able to
generate a String with the value in hex?
In C, this would just be strlen, sprintf, and strcat.
Is it possible to do this in Java?
Thanks!