public Future<String> classify(String snippet){
  final ExecutorService service=Executors.newSingleThreadExecutor();
  return service.submit(new ClassifyingTask(snippet));
}

public Future < String > classify ( String snippet ) { final ExecutorService service = Executors . newSingleThreadExecutor ( ) ; return service . submit ( new ClassifyingTask ( snippet ) ) ; }
creates code snippet language classifying task .
