Java Program to print Alphabets




This is the simple and also the favorite program of an new learning student who start's learning "Java" language.

This will be the initial step for every new programmer to built the logic's as well as to get full control on command line by understanding the work of "for loop" by this simple program.



class Alphabets
{
   public static void main(String args[])
   {
      char ch;
      for( ch = 'a' ; ch <= 'z' ; ch++ )
         System.out.println(ch);
   }
}
 



Output  : 



Previous Post Next Post