Question: Given the following method static void nPrint(String message, int n){ while (n > 0){ System.out.print(message); n--; } } What is the printout of the call
Given the following method
static void nPrint(String message, int n){
while (n > 0){
System.out.print(message);
n--;
}
}
What is the printout of the call nPrint('a',4)?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
