Here is my code:
byte[] temp1 = EMan.EncodeDataString(ExportStudent.FirstName);
System.err.println("Original String");
System.err.println(ExportStudent.FirstName);
System.err.println("Original byte array");
System.err.println(temp1);
String STemp10 = temp1.toString();
System.err.println("Transferred String");
System.err.println(STemp10);
byte[] temp23 = STemp10.getBytes();
System.err.println("Transferred byte array");
System.err.println(temp23);
Here is my log:
Original String
Nelson
Original byte array
[B@2ac79769
Transferred String
[B@2ac79769
Transferred byte array
[B@15a58470
Why is the conversion back to a Byte array screwing it up?