It's not a secret anymore!
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

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?
Jessica Sant

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!!
I agree. Here's the link:
subject: Two more questions...
It's not a secret anymore!