How can I get the input from keyboard without using swing?
- From: iherage@xxxxxxxxx
- Date: 26 Jun 2005 12:51:05 -0700
I used to use c++.If you want to get input you write
#include <iostream>
using namespace std;
int main(void)
{
int a,b;
cout<"Please input a & b";
cin>>a>>b;
count<<"what you input is a="<<a<<",b="<<b;
return 0;
}
Can I use java to get the input from the keyboard like this without
using the GUI?
.
- Follow-Ups:
- Re: How can I get the input from keyboard without using swing?
- From: Knute Johnson
- Re: How can I get the input from keyboard without using swing?
- Prev by Date: Re: Question about clone a Hashtable
- Next by Date: Re: How can I get the input from keyboard without using swing?
- Previous by thread: Nothing but blank windows...
- Next by thread: Re: How can I get the input from keyboard without using swing?
- Index(es):
Relevant Pages
|