GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes Two more questions... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Two more questions..." Watch "Two more questions..." New topic
Author

Two more questions...

Rob Michaelson
Ranch Hand

Joined: Jul 15, 2003
Posts: 36
What is the syntax to write method with and without parameters and with an without return value?
What is the syntax to access a member of an object?
Thanks
Rob
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

here are a variety of methods with and without return values, with and without parameters. The names should be pretty self explanatory.

To access members of an object, you use the . operator:

Hope that helps!!
 
GeeCON Prague 2014
 
subject: Two more questions...