Question: Please do this in JAVA import java.util.Scanner; public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); String userText; //
Please do this in JAVA

import java.util.Scanner;
public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); String userText; // Add more variables as needed userText = scnr.nextLine(); // Gets entire line, including spaces.
/* Type your code here. */ } }
3.25 LAB: Count input length without spaces, periods, or commas 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: 21 Note: Account for all characters that aren't spaces, periods, or commas (Ex:"1","2","I). 222002077956 LAB ACTIVITY 3.25.1: LAB: Count input length without spaces, periods or commas 0/10 LabProgram.java Load default template 5 import java.util.Scanner: 3 public class LabProgram { public static void main(String[] args) { Scanner sehr = new Scanner(System.in); 6 String user Text; 7 // Add more variables as needed 8 9 userText = senn.nextLine(); // Gets entire line, including spaces. /* Type your code here. 12 13} 18 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
