Explanatory Question
Study the method and answer the given questions.
public void sampleMethod()
{ for (int i=0; i < 3; i++)
{ for (int j = 0; j<2; j++)
{int number = (int)(Math.random() * 10);
System.out.println(number); }}}
How many times does the loop execute?
What is the range of possible values stored in the variable number?
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.