Solved

cannot find method error

Posted on 2006-12-01
2
211 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
eclipse shortcuts 9 56
Android development question 2 38
Detect Closed Loops (circles, figure-8s, etc) in PNG Images 6 34
printf performancy 11 43
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

832 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