// 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 Traditional {
    public static void test(boolean and) {
        System.out.println(and + ":");
        for(int y = 0; y < 10; y++) {
            for(int x = 0; x < 10; x++) {
                System.out.printf(" %1.1b", and ? (y < 5 && x > 4) : (y < 5 || x > 4));
            }
            System.out.println();
        }
    }
    public static void main(String[] args) {
        test(true);
        test(false);
    }
}
