i want to take input from keyboard and check which key is pressed
if possible send the code.
thank u.

Follow Ezzaral's suggestions, unless you're only trying to get input from the user, in which case you can read in Integers, Strings, etc with Scanner. (Google java scanner)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.