KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > format > Scanf


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package jodd.format;
4
5 import java.io.BufferedReader JavaDoc;
6 import java.io.InputStreamReader JavaDoc;
7 import java.io.IOException JavaDoc;
8
9 /**
10  * Scanf.
11  * todo implement;)
12  */

13 public class Scanf {
14
15     protected static BufferedReader JavaDoc in = new BufferedReader JavaDoc(new InputStreamReader JavaDoc(System.in));
16
17     /**
18      * Scans input console and returns entered string.
19      */

20     public static String JavaDoc scanf() {
21         try {
22             return in.readLine();
23         } catch (IOException JavaDoc ioe) {
24             return null;
25         }
26     }
27 }
28
Popular Tags