The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

So Lost with void method

I get the error cannot find symbol - method method (int)

publicclass huh
{publicstaticvoid method1(){System.out.println("I wonder who wrote the book on love");}publicstaticvoid method1(int x){for(i =0; i < x; i++)System.out.println("I wonder who wrote the book on love")+ i;}publicstaticvoid main(String[] args){int i;for(i =0; i <6; i++){System.out.println(int i);
method1();
method(i);}}}

Re: So Lost with void method

I have no reason to keep anything from the thread.
Blue J error = cannot find symbol - method method (int)
That will be the complete and only error that generate until i fix it.

Right. And what method do you expect method(i) to call? Look closely at your other methods compared to what you're trying to call. Hint- where is the method named method that takes an integer parameter?