I have a few byte array variables that I need to convert to string buffers.
Is there a conversion method of this type?
thank
Thank you all for your answers ... But I myself did not understand. I use some byte [] arrays, predefined as public static "under" the class declaration for my java program. these "fields" are reused during the "life" of the process. Since the program displays status messages (written to a file), I defined a string buffer (mesg_data), which is used to format the status message. Since the program is running I tried msg2 = String (byte_array2) I get a compiler error: I can not find the symbol symbol: String method (byte []) location: class APPC_LU62.java.LU62XnsCvr convrsID = String (convers_ID);
example:
public class LU62XnsCvr extends Object
.
.
static String convrsID ;
static byte[] conversation_ID = new byte[8] ;
Therefore, I cannot use the "dynamic" definition of a string variable, because the same variable is used in several cases.
,