Question: public static void main(String[] args) { int count = 13; String stringOut = I love this class ; do { stringOut = Animals can be
public static void main(String[] args)
{
int count = 13;
String stringOut = "I love this class ";
do
{
stringOut = "Animals can be messy ";
for (int order = 1; order < 5; ++ order)
for (int copy = 1; copy <= 2; copy++)
System.out.println(niceHippo());
System.out.println(niceLion ());
}while (count != 13);
count = 13;
while (count > 10)
{
count--;
}
System.out.println(stringOut + count);
}
How many times will niceHippo () be called?
- 1
- 5
- 6
- 8
- 10
How many times will niceLion() be called?
- 10
- 1
- 5
- 6
- 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
