throw new RuntimeException("non binary digit: " + d);
System.out.println("non binary digit");
    public void dataCheck(int d) {	if ((d != 0) && (d != 1)) {	    throw new RuntimeException("non binary digit: " + d);	}    }