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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.