View Single Post
  #1   Spotlight this post!  
Unread 06-01-2015, 20:14
TeamMarcies TeamMarcies is offline
Registered User
FRC #4777
 
Join Date: Jun 2013
Location: Canada
Posts: 9
TeamMarcies is an unknown quantity at this point
Packages/Importing problem with FRC Java

So currently I am trying to use the following VALID java statement:

public Executor executor = Executors.newSingleThreadExecutor();

It requires these two imports:

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

which require this package:

package java.util.concurrent;

Which isn't found according to Netbeans but is found when I am working with a default java project.

Is this simply not allowed to be used?
I am wanting to use threads in autonomous mode and through that, use Executors that will allow threads to be placed in queue so I can have them executed in the order I have threads be executed in.

Also, are threads allowed to be used?
Reply With Quote