Originariamente inviato da DarthSandr
Ho un byte[] vect = {0x45, 0x55, 0x52, 0x00} e da questo vorrei ottenere una String con il valore "EUR "

Come devo fare?
String s = new String(vect, "US-ASCII");

Le uniche cose sono: 1) tecnicamente questo costruttore può lanciare UnsupportedEncodingException (eccezione checked) ma tanto US-ASCII è sicuramente gestito. 2) Se nel buffer hai il nullo, te lo ritrovi anche nel String e dovresti eliminarlo.