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="";
...
}
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> 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="";
}