Skip to content

Print characters from a to z using loop in Java

In this short post, let’s learn how to display characters from a to z using loop in Java.

void a2Z() {
        char c;
        for(c = 'A'; c <= 'Z'; ++c)
            System.out.print(c + " ");
    }
See also  Blocked by CORS policy error - How to fix?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.