Forum: Java Nov 23rd, 2008 |
| Replies: 6 Views: 3,649 actually i found the answer
String a= console.next();
char b = (char)a.charAt(0);
thanks guys ;) |
Forum: Java Nov 21st, 2008 |
| Replies: 6 Views: 3,649 so how can i make a program that reads the 1st character that the user enters:
for example:
if user enters :: A 1 2
ch= console.nextChar();
g = console.nextInt();
h= console.nextInt(); |
Forum: Java Nov 21st, 2008 |
| Replies: 6 Views: 3,649 Hi everyone,
I need your help please
What do i need to make my program read
the next character
using console.nextChar();
I've added the following: |