Introduction
In this lab, you will learn how to check if a string is in lowercase in Java. We will explore different methods to achieve this, starting with comparing strings while ignoring case using toLowerCase()
and equalsIgnoreCase()
.
You will then learn how to iterate through a string and use Character.isLowerCase()
to check each character individually. Finally, we will cover how to handle non-letter characters when performing this check.