Traffic light & car

Posted by Tvinky on Oct 23, 2008 in From life, Programming |

Today in University we had to do test work in Java. The task was to write/creat two objects: traffic light and a car. Where traffic light changes color when you press on button, but car can move to sides depending what traffic light is on.

IDE in which we were writing this code, was J++ or something like that (some kind of Microsoft sh#t). I have promised myself that next time I’ll use Eclipse or EasyEclipse for Java programming.

So when I got my mark and it was 9 (because I didn’t had cool graphics), I went back to my hosteller and thought that it would be great to make post about it in my blog. So if you are kinda intrested in Java programming or just want to see the code, I’ll put source code link and Java applet at the end of the post.

P.S At the first time when I launched applet on FF3 it just hanged up, but with second try applet worked fine. I have also tried to open with Chrome browser, but it failed – sad that I don’t have needed plugin.

Tags: , , , ,

Reply

Feel free to comment in:
  • Latvian
  • Russian
  • English

Copyright © 2010 Tvinky’s blog All rights reserved. Theme by Laptop Geek.