*
The moose likes Beginning Java and the fly likes Stuck on return statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Stuck on return statement" Watch "Stuck on return statement" New topic
Author

Stuck on return statement

Sam Bluesman
Ranch Hand

Joined: Nov 21, 2004
Posts: 191
Hi. I have a program which has the following stucture:



basically want to invoke method 5 in method 4 but I get an error saying
backend(java.lang.String,java.lang.String,java.lang.String) in backend cannot be applied to (). What do I need to do to sort this out i.e. what should i be putting in the brackets???

Ask me for more info if required!

Cheers
[ March 03, 2006: Message edited by: Sam Bluesman ]

Moosey knows best
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9915
    
158

Originally posted by Sam Bluesman:

backend chr = new backend();



You are creating a object of backend, but are not passing any parameters to its constructor. If you dont have any parameters to pass to the backend constructor, then create a default constructor as follows:



[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stuck on return statement
 
Similar Threads
Is there a performance difference between these two code
Method specific call.
SE1.4 VS 1.6
Wrappers
using jakarta nullcomparator