Given the following method

```
static void nPrint(String message, int n) {
while (n > 0) {
System.out.print(message);
n--;
}
}
```
What is k after invoking nPrint("A message", k)?

int k = 2;
nPrint("A message", k);
a. 0
b. 1
c. 2
d. 3

c. 2

Computer Science & Information Technology

You might also like to view...

When you export ________, multiple files can be created

Fill in the blank(s) with correct word

Computer Science & Information Technology

A line height of 150% stacks the lines of text right on top of one another without spacing.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology