// 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) 
import java.net.*;

public class Problem {
    public static void main(String[] args) throws Exception {
        for(int i = 0; i < 256; i++) {
           byte[] b = new byte[1];
           b[0] = (byte)i;
           String s = new String(b);
           System.out.println(i + " : " + test(s));
        }
    }
    private static boolean test(String s) {
        return s.equals(URLDecoder.decode(URLEncoder.encode(s)));
    }
}
