Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Newer Team; Need Help on Java. (http://www.chiefdelphi.com/forums/showthread.php?t=110766)

Team4166 08-01-2013 18:27

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
Code:

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. :]

Jon Stratis 08-01-2013 18:41

Re: Newer Team; Need Help on Java.
 
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 :)

If you or your team needs more help in Java, please feel free to get in touch with us - 2177@therobettes.com 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.

Team4166 08-01-2013 18:44

Re: Newer Team; Need Help on Java.
 
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...

Joe Ross 08-01-2013 18:44

Re: Newer Team; Need Help on Java.
 
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.

dheerm 08-01-2013 18:45

Re: Newer Team; Need Help on Java.
 
Quote:

Originally Posted by Team4166 (Post 1210949)
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
Code:

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. :]

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 .

Team4166 08-01-2013 18:48

Re: Newer Team; Need Help on Java.
 
Quote:

Originally Posted by Joe Ross (Post 1210959)
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.

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!

dheerm 08-01-2013 18:48

Re: Newer Team; Need Help on Java.
 
Quote:

Originally Posted by Joe Ross (Post 1210959)
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.

I did not know that, we learn something new everyday don't we :)

Team4166 08-01-2013 18:50

Re: Newer Team; Need Help on Java.
 
Quote:

Originally Posted by dheerm (Post 1210960)
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 .

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


All times are GMT -5. The time now is 02:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi