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  Exception in thread "main" org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0

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.