Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

cannot find method error

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet doXXX methods 3 62
diffSum example 4 50
map related example 6 55
null output 3 35
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…
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…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

809 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