level 1
class Test{static void readDigit(){char c = ' ';try{while((c=(char)System.in.read())!='q'){boolean b = (c>='0' && c<='9');System.out.print( b? (char)c : " ");}}catch(Exception e){}}static void readLowerCase(){char c = ' ';try{while((c=(char)System.in.read())!='q'){boolean b = (c>='a' && c<='z');System.out.print( b? (char)c : " ");}}catch(Exception e){}}public static void main(String[] ag){System.out.println("输入q退出!");readDigit();readLowerCase();}}
2008年04月01日 15点04分