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. 1
  2. 5
  3. 6
  4. 8
  5. 10

How many times will niceLion() be called?

  1. 10
  2. 1
  3. 5
  4. 6
  5. 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!