What does the following program do? - Java Language Basics

Java examples for Language Basics:for

Description

What does the following program do?

Demo Code

public class Main 
{
   public static void main(String[] args)
   {//  ww  w . j  av  a 2  s  .c o  m
      for (int i = 1; i <= 10; i++) 
      {
         for (int j = 1; j <= 5; j++)
            System.out.print('@');

         System.out.println();
      } 
   } 
}

Result


Related Tutorials