![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2004
Posts: 31
Rep Power: 0
![]() |
help!!!urgent
i want to know the statement for reading a character in java
when i use (char)System.in.read() method java does not recognize it.is there a another way.. |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Dec 2004
Posts: 18
Rep Power: 0
![]() |
cant you use readLine(); ??
for example you do this static BufferedReader keyboard = BufferedReader(new InputStreamReader(System.in)); String name; name = keyboard.readLine(); is that what your looking for? remember keyboard could be anything you specify it to be and so can name. dont have to use those names or do this: string letterGrade = "F"; System.out.println(letterGrade.charAt(grade)); hope this helps Last edited by Cup O' Java; Feb 16th, 2005 at 11:56 PM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|