How can I declare such variable:
private ImageService service;
I saw it here.
Do I have to add some kind of specific lib?
How can I declare such variable:
private ImageService service;
I saw it here.
Do I have to add some kind of specific lib?
You should use import
statement at the begining of your class.
import blablabla.ImageService;
where blablabla
is a package.