Java for loop Question 5

Question

What is the output of the following code?

public class Main {

  public static void main(String[] args) {
    for (int row = 0; row < 5; row++) {

      for (int column = 0; column < 5; column++) {

        System.out.print("*");

      }// www .  ja v  a  2  s.  co  m

      System.out.println();

    }
  }
}


*****
*****
*****
*****
*****



PreviousNext

Related