Question: CHALLENGE ACTIVITY 6 . 1 2 . 1 : Method name overloading. 5 2 8 0 4 0 . 3 4 8 9 5 2
CHALLENGE
ACTIVITY
: Method name overloading.
qxzqy
Fill in the parameters in the second method header for the overloaded method printAge The number, type, and order of the method parameters are indicated in the method call from main
Ex: If the input is Tyrone, then the output is:
Tyrone is years old
Terrell is years old
import java.util.Scanner;
public class MultipleAges
public static void,printAgeint age, String name
System.out.printlnname is age "years old";
public static void printAge your code goes here
System.out.printlnTerrell is customAge "years old";
public static void mainString args
Scanner scnr new Scanner
System.in;
int age;
String name;
age nex;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
