// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class CTest {
    public static void main(String[] args) {
        byte[] b = new byte[256];
        for(int i = 0; i < b.length; i++) b[i] = (byte)i;
        String s = new String(b);
        byte[] b2 = s.getBytes();
        for(int i = 0; i < b.length; i++) {
            if(b[i] != b2[i]) {
                System.out.println(i + " " + b[i] + " " + b2[i]);
            }
        }
    }
}
