1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.2 3 package jodd.format;4 5 import java.io.BufferedReader ;6 import java.io.InputStreamReader ;7 import java.io.IOException ;8 9 /**10 * Scanf.11 * todo implement;)12 */13 public class Scanf {14 15 protected static BufferedReader in = new BufferedReader (new InputStreamReader (System.in));16 17 /**18 * Scans input console and returns entered string.19 */20 public static String scanf() {21 try {22 return in.readLine();23 } catch (IOException ioe) {24 return null;25 }26 }27 }28