import java.io.IOException; public class KeyIn { public static void main(String[] args) { String x = null; try { byte[] b = new byte[12]; System.in.read(b); x = new String(b, "us-ascii"); System.out.println("["+x+"]"); } catch (IOException e) { e.printStackTrace(); } } }