File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Stuck on return statement" Watch "Stuck on return statement" New topic

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!

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

Moosey knows best
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

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:
subject: Stuck on return statement
jQuery in Action, 3rd edition