getting data from the keybroad
2014-10-04 15:17
323 查看
public static String getString() throws IOException{ InputStreamReader isr = new InoutStreamReader(System,in); BufferedReader br = new BufferedReader(isr); String s = br.readLine(); return s; } public static char getChar() throws IOException{ String s= getString(); return s.charAt(0); } public static int getInt() throws IOException{ String s = getString(); return Integer.parseInt(s); }
相关文章推荐
- Example: Getting WMI Data from the Local Computer
- Getting Data From the Web (URLConnection via http)
- Getting the right Exception Context from a Memory dump Fixed -- cnblogs
- Draw the RGB data from kinect C++ via opengl
- DataTables warning : Requested unknown parameter '0' from the data source for row 0错误
- 译《Understanding Microsoft Virtualization Solutions―From the Desktop to the Datacenter》-之序
- Get the window data(lamda,flux, true) from a center point and the window width
- Make sure the Cursor is initialized correctly before accessing data from it.
- where is the data come from after we drop the table
- Post-quantum key exchange for the TLS protocol from the ring learning with errors problem
- Generating XML Data from the Database
- [Falcor] Return the data from server
- Managing Virtual Teams: Getting the Most from Wikis, Blogs, and Other Collaborative Tools
- iphone – Getting data from uiwebview textfield
- advanced skills of getting stock quotes data from web
- Mining the Web: Discovering Knowledge from Hypertext Data
- Could not create the driver from NHibernate.Driver.MySqlDataDriver
- redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key holding the wrong kind of value
- CE Unable to read data from the transport connection.
- 译《Understanding Microsoft Virtualization Solutions—From the Desktop to the Datacenter》-之序