Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

cannot find method error

Posted on 2006-12-01
2
Medium Priority
?
225 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 1000 total points
ID: 18058871
if you added the method newly, compile that class again and then try
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

916 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