Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two more questions...