JAVA
Posted: Fri Apr 29, 2022 8:03 am
JAVA
Write a method called countNonSpaces that takes in a string as a parameter and returns an integer that represents the number of non- space (i.e. not'') characters contained in the string. (4 marks)
Write a method called countNonSpaces that takes in a string as a parameter and returns an integer that represents the number of non- space (i.e. not'') characters contained in the string. (4 marks)