You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
chetan
Print alphabets with loop in Java In Java, you can print alphabets with a loop by iterating over their ASCII values. For example, for (char ch = 'A'; ch <= 'Z'; ch++) { System.out.print(ch + " "); } prints uppercase alphabets from A to Z. Similarly, you can use 'a' to 'z' for lowercase letters. This method highlights Java's efficiency in character manipulation, making it easy to generate sequences programmatically.