I am using implicit String constructor that handle byte array..but it results weird. Do I have to do something more for proper output..? Any help will be appreciated. Here is my code..
byte[] arr = { 23, 34, 20, 65, 88, 95 };
String s1 = new String(arr);
System.out.println("First: "+s1);
String s2 = new String(arr, 1, 3);
System.out.println("Second: "+s2);
it prints:
First: ?"?AX_
Second: ?AX