This is not a proper method signature:
public CallableTask(i,
String[] host )
What is i? More specifically, what type is i?
Other pointers:
Improperly indented code, even a small code fragment, is hard to read.
Functions in your previous language are called methods in
Java.