Hello, I use this code
for(int i = 0; i < citylink.length; i++) {
body=pF.fetchpage(citylink[i][1]);
// It's for taking the url from the table citylink
// and returns the source of this url!
I have also declared it in my pagefetcher.java
class like this:
public String fetchPage(String url) {
try {
url = URIUtil.encodeQuery(url);
} catch (URIException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
but when I compile it it says that the method fetchpage(String)
is undefined for the type PageFetcher
and I can't run my problem! I don't know what to do.