Link to home
Start Free TrialLog in
Avatar of jpking72
jpking72

asked on

cannot find method error

I am geting a "cannot find method multipleA()" error but the method is there

for(int i=0; i<sentences.size();i++){
 temp = sentences.get(i).multipleA();
 System.out.println(temp);}

  public String multipleA() {
        List<Node> tempList;
        tempList=toList();
        String temp="";
   ...
}    
       
Avatar of Ajay-Singh
Ajay-Singh

move

> public String multipleA() {
out of the function:

public void func() {
for(int i=0; i<sentences.size();i++){
 temp = sentences.get(i).multipleA();
 System.out.println(temp);
}
}

  public String multipleA() {
        List<Node> tempList;
        tempList=toList();
        String temp="";
    }
ASKER CERTIFIED SOLUTION
Avatar of ksivananth
ksivananth
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial