How to move a robot with key

  • Thread starter Mnm Sim via JavaKB.com
  • Start date
M

Mnm Sim via JavaKB.com

I'm a student and i'm not sure how to move a robot with keys. When i press VK_UP it should move(); does anybody know how to do that thanks.
 
K

klynn47

Could you be more specific about the robot? If it is a drawing of a
robot, you can implement KeyListener and then trigger an action after
the keystroke.
 
D

dar7yl

I'm a student and i'm not sure how to move a robot with keys. When i press
VK_UP it should move(); does anybody know how to do that thanks.

Step 1: open the book
Step 2: read the lesson
Step 3: do the exercises (in the order presented)
Step 4: get value for the money you are paying for your education.
 
C

Chris Smith

Virgil Green said:
Oh, and please tell me this isn't a Harvard class...

Who knows, these days? If George W. Bush can get into Yale...

Nevertheless, Google seems to indicate that this "JKarel" thing exists
at several universities as a teaching tool. Harvard only has the first
few links. The original source is unclear, and isn't even described in
the official documentation.

Interestingly enough, JKarel apparently uses a simplified Java-like
language, rather than Java itself. That means it's not only incredibly
odd and amusing that someone assumes we all know what JKarel is; but
also basically off-topic for this newsgroup.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top