Given the following method
static void nPrint(String message, int n) {
while (n > 0) {
System.out.print(message);
n--;
}
}
What is the output of the call nPrint('a', 4)?
a. aaaaa
b. aaaa
c. aaa
d. invalid call
d Invalid call because char 'a' cannot be passed to string message
Computer Science & Information Technology
You might also like to view...
________ is a way to market yourself by developing your image, personal style, abilities, and other characteristics to separate yourself from others
Fill in the blank(s) with correct word
Computer Science & Information Technology
When using the debugger, the code is executed one line at a time to make it easier to identify the exact point that the run-time error occurs
Indicate whether the statement is true or false.
Computer Science & Information Technology