the method in the other class is declared public and I have checked the case in the original code and made sure when I am trying to call to that method I am typing it exactly as it appears in the main class.
Thanks for your help. I wasn't sure if maybe I had to use a different syntax in Textpad or ...
Search found 2 matches
- Sat Jan 17, 2004 11:32 pm
- Forum: Java
- Topic: Having a problem calling a method from another class
- Replies: 5
- Views: 1020
- Sat Jan 17, 2004 9:40 pm
- Forum: Java
- Topic: Having a problem calling a method from another class
- Replies: 5
- Views: 1020
Having a problem calling a method from another class
Hi!
I am taking a java class and it is teaching me how to write the code where I am calling a method from another class. It is giving me an error
below is the code and the error - Can anyone help me with this?
Thanks!!
public class TestStatement
{
public static void main(String[] args ...
I am taking a java class and it is teaching me how to write the code where I am calling a method from another class. It is giving me an error
below is the code and the error - Can anyone help me with this?
Thanks!!
public class TestStatement
{
public static void main(String[] args ...