Java Program to Print the English Alphabets In Lower Case

Write a java Program to print the following output:
Output:

a b c d e f g h I j k l m n o p q r s t u v w x y z

Try your Solution

Strongly recommended to Solve it on your own, Don't directly go to the solution given below.

public class Hello { public static void main(String args[]) { //Write your code here } }

Program or Solution

				
			
					
//To Print All The English Alphabets In Lower Case...

import java.util.*;

class Program
{
  public static void main(String args[])
   {
      int i;
      char ascii;
      Scanner sc=new Scanner(System.in);

     System.out.println("The Alphabets In Lower Case:");
     for(i=97;i<=122;i++)
       {
           ascii=(char)i;
           System.out.println(" "+ascii);
      }

  }
}
			
				
			

Program Explanation

Comments