In this article, we will discuss the concept of the Java program count the total number of characters including space in the given string