View Single Post
  #10   Spotlight this post!  
Unread 28-02-2014, 15:12
James Lightfoot James Lightfoot is offline
Programming & Electrical Mentor
FRC #3737 (Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wayne County, NC
Posts: 21
James Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really nice
Re: XBOX Controller JAVA Programming

Quote:
Originally Posted by BigJ View Post
So, in Java, what super() does is if you're extending a class, it calls the constructor of the class you're extending (or superclass). So, right now, it's trying to call Joystick(). If we look at the javadoc for Joystick, we can see the valid constructors for Joystick. You probably want to sue the 1-argument one, and change it to super(port).
Thanks and thank you , BigJ. I have bought a couple of books to use in teaching our programmers Java post-season, but I am still looking for one that can give a "Cliif Notes" intro into Java. As a programmer of other languages for 25+ years, I get the concepts of programming, but OOP, specifically Java, are new to me; hence, I am looking for something that gives a high level breakdown of the various structures (e.g. class, method, variable, construct, instance, etc.), what each typically requires, how each uses or feeds the others, etc. Any advice will be pput to use post-haste.
Reply With Quote