Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Adella Garcia   on Sep 06 In Java Category.

  
Question Answered By: Joyce Edwards   on Sep 06

// method to handle key  - down events
public boolean keyDown (Event e, int key)
{
System.out.println ("Charakter: " + (char)key + "

Integer Value: " + key);
return true;

}

if you run this in a browser look for a consol if you
run this in a command  line key should appear

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on how to get input from console Or get search suggestion and latest updates.


Tagged: