<<< String from array of chars | Index | String methods >>> |
Two ways to create a string from an array of bytes:
byte cityArray[] = { 68, 97, 108, 108, 97, 115 };
String cityString1 = new String( cityArray );
String cityString2 = new String( cityArray, 0, 3 );
<<< String from array of chars | Index | String methods >>> |