Newer Team; Need Help on Java.

Our team is relatively new (this is our second year) and our programming team is even newer (first year, as our last team graduated). This is my first time using Java, and I keep getting an “Import section does not correspond to the specified codestyle used” error every time I attempt to import a Jaguar. I’ve been using

import edu.wpi.first.wpilibj.Jaguar;

as that is how I learned to import a Jaguar or other items at a programming workshop. All I’m trying to do is set up a Jaguar to drive and turn the robot, a seemingly simple task. If anyone can send a sample code or simple words of advice, my team and I would be seriously grateful. Thanks. :]

I’ll try to get you an answer from our programers tonight, and post it back here. I’m betting the workshop you’re talking about was the Splash in December, which our lead programmer was presenting for the Java session :slight_smile:

If you or your team needs more help in Java, please feel free to get in touch with us - [email protected] will get you straight to the students who can help! You’re a little ways from the Cities, but if needed we might be able to set up something more in depth to help you out.

Actually, I was at said workshop on kick-off day. It was nothing intricate, we just learned basics there. Apparently I didn’t gain much from it…

That is just a nit-pick warning, your code will function just fine with the warning. Netbeans would like all imports in alphabetical order. If you click on the warning, it will offer to organize the imports for you. You can also use Ctrl-Shift-I to organize the imports.

My first question would be what IDE are you using? I recommend Netbeans with the FRC plugin.

If you need any additional help I’ll be happy to help you. I’ll private message you my personal email so that you can contact me .

Oh wow… That was an entire programming session wasted trying to figure out what our issue was. But now we know, and thank you oh so very much!

I did not know that, we learn something new everyday don’t we :slight_smile:

Yes, I’m using Netbeans with the FRC plug-in. I already got help, but thank you anyways.