Search For

Print Alphabets

Flag Hide Line Nos
Flagging a Snippet, takes the snippet to Moderator Attention;


0
This program print alphabets on screen i.e a, b, c, ..., z.

class Alphabets
{
   public static void main(String args[])
   {
      char ch;
 
      for( ch = 'a' ; ch <= 'z' ; ch++ )
         System.out.println(ch);
   }
}
Vote! You feel this code is working like charm ? Go a head Login and Press up arrow.
Didn't work ?, press down arrow and let us know the error in comments

Comments

  • Pinkie
    I&#39;m trying to print out the alphabet twice, once with lowercase, then uppercase and i really cant figure out how. help?
  • We donno you ! Login or Signup to make a Comment