Hi sagarika, Welcome to Javaranch, a friendly place for Java greenhorns In Java, you can retrieve characters typed on the keyboard by invoked the read() method on the System.in input stream. For instance, the following program allows you to read three integer primitives from the keyboard: