• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stuck on return statement

 
Sam Bluesman
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic