Java Program:

- To print alphabets from A to Z

Example:

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
import java.util.Scanner;
public class Alphabets {
  public static void main(String []args) {
    char c='A';
    System.out.println("Alphabets from A to Z :");
    for(int i=0; i<26; i++)
      System.out.print(c++ +" ");
  }
}

Output:

Alphabets from A to Z :
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
Program
basic

Here, we just used 'for loop' for 26 alphabet characters

char c='A'; //set the 1st character 
for(int i=0; i<26; i++)
  System.out.print(c++ +" ");

You can print the same in small alphabets, just set c='a'

Concept

Coming Soon !

Quick
Tutorial

Quote

Make bold choices and make mistakes. It’s all those things that add up to the person you become.