Question: I struggling to solve im struggling with java Given a line of text as input output the number of characters excluding spaces periods, or commas.

I struggling to solve im struggling with java
Given a line of text as input output the number of characters excluding spaces periods, or commas. Ex: If the input is Listen, Mr. Jones, calm down. the output is: 121 Note: Account for all characters that arent spaces, periods, or commas (Ex 2.. 2889021707128 LAB ACTIVITY 0 / 10 3.25.1: LAB. Count input length without spaces, periods or commas LabProgram.java Load default template. 1 import java.util.Scanner; 2 3 public class LabProgram { 4 public static void main(String[] args) { 5 Scanner sehr = new Scanner(System.in); 6 String userText; 7 Add more variables as needed I 8 usertext -scnn.nextLine(); / Gets entire line, including spaces. Type your code here. 9 10 11 12 13} 14 7 Develop mode Submit mode Run your program as often as you'd like before submitting for grading Below, type any needed input values in the first box, then click Run program and observe the programs output in the second box Enter program input (optional) Listen, Mr. Jones, calm down
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
