This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 9343
    
111

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
Wrappers
using jakarta nullcomparator
Method specific call.
SE1.4 VS 1.6