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 public
The return type of the method is void
The local variable identifier is temp
The formal argument identifier is myNum
The signature of the method is
void showNumber(int)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.