// $Id: ZeroOne.java,v 1.1 2002-07-07 20:08:15+09 kaiya Exp $ class ZeroOne { boolean zeroOne(int s) throws Exception{ if(s==0) return false; if(s==1) return true; throw new Exception("Neither 0 nor 1"); } public static void main(String[] args){ for(int i=0; i