Showing posts with label demo of for loop. Show all posts
Showing posts with label demo of for loop. Show all posts

Saturday, 29 June 2013

Print alphabets in java

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