public class KeyBoard {
static {
System.loadLibrary("inputdll");
}
public native static char get();
public static void main(String[] args) {
StringBuffer stfDir = new StringBuffer();
KeyBoard test = new KeyBoard();
char c;
c=test.get();
while(c!='\r' && c!='\n'){
System.out.print('*');
stfDir.append(c);
c=test.get();
}
System.out.println("\nHere is what you input:\n"+ new String(stfDir));
}
} ///:~