Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Java » Programs » Print all alphabets from A to Z

Java program to print all alphabets from A to Z

public class Main {

	public static void main(String[] args) {
		// print chars/alphabets from A to Z
		
		for(char ch = 'A'; ch<='Z'; ch++) {
			System.out.print(ch + " ");
		}
	}
}