tailangong
Programmer
NameService service = NameService.getInstance(names);
List matching = service.findNames(prefix);
I came across a book and tried the code shown there. However, part of the codes (highlighted-as shown above) have some problem. The NameService couldn't call the .getInstance(names) function. Maybe I just need to import a correct library for this but I couldn't find out which library suits the best for this.
Do you guys know which library NameService from in this case?
List matching = service.findNames(prefix);
I came across a book and tried the code shown there. However, part of the codes (highlighted-as shown above) have some problem. The NameService couldn't call the .getInstance(names) function. Maybe I just need to import a correct library for this but I couldn't find out which library suits the best for this.
Do you guys know which library NameService from in this case?