Question: I keep receiving this error when trying to run my code not sure what I am doing wrong. LAB ACTIVITY 3.25.1: LAB: Count input length

I keep receiving this error when trying to run my code not sure what I am doing wrong.
LAB ACTIVITY 3.25.1: LAB: Count input length without spaces, periods, or commas 0/10 LabProgram.java Load default template... 1 import java.util.Scanner; 3 public class LabProgram { 4 public static void main(String[] args) { 5 Scanner scnr = new Scanner(System.in); 6 String userText; 7 8 int i,count = 0;; 9 System.out.println("Enter input "); 19 Scanner scnr = new Scanner(System.in); 11 12 userText = scnr.nextLine(); 13 char[] ch = userText.toCharArray(); 14 for (i-0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
