public void showNumber(int myNum)
{
String temp;
temp = "Your number was ";
System.out.println(temp + myNum);
} The header of the method is public void showNumber(int myNum)
The access modifier is publicThe return type of the method is voidThe local variable identifier is tempThe formal argument identifier is myNumThe signature of the method is void showNumber(int)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.