Solved

cannot find method error

Posted on 2006-12-01
2
209 Views
Last Modified: 2010-03-31
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="";
   ...
}    
       
0
Comment
Question by:jpking72
2 Comments
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 18058870
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="";
    }
0
 
LVL 26

Accepted Solution

by:
ksivananth earned 250 total points
ID: 18058871
if you added the method newly, compile that class again and then try
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countAbc challenge 9 49
json format text only 4 65
groovy example issue 10 66
how do i compare an object based on two fields 6 31
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now