sid's
Would you like to react to this message? Create an account in a few clicks or log in to continue.

sid's

OPen Discussion
 
HomePortalSearchLatest imagesRegisterLog in

 

 METHOD

Go down 
AuthorMessage
Admin
Admin



Posts : 50
Join date : 2007-08-10
Age : 44
Location : Kuala Lumpur

METHOD Empty
PostSubject: METHOD   METHOD Icon_minitimeMon Oct 01, 2007 9:13 pm

eg1 :

/**
This program defines and calls a simple method.
*/

public class SimpleMethod
{
public static void main(String[] args)
{
System.out.println("Hello from the main method.");
displayMessage();//invoked method
System.out.println("Back in the main method.");
}

/**
The displayMessage method displays a greeting.
*/

public static void displayMessage()
{
System.out.println("Hello from the displayMessage method.");
}
}
Back to top Go down
https://sidnazuha.board-directory.net
 
METHOD
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
sid's :: TEACHING MATERIAL :: UPM-SAK3100-
Jump to: