Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java Help Please! No one seems to be able to give me an answer. I'm not sure what I'm doing wrong. Here is the question.
Java Help Please! No one seems to be able to give me an answer. I'm not sure what I'm doing wrong. Here is the question.
Here is my code:
Here is my output. I get the correct output but it says I need white space after the word. I've tried everything I can think of.
I've tried: System.out.println(ch); System.out.print(ch + " "); System.out.print(ch );
Thank you so much for your help!
4.15 LAB: Remove all non alpha characters Write a program that removes all non alpha characters from the given input. Ex. If the input is: Hello, 1 worlds! the output is: Hellowor 1d 4.151: LAB Remove all non alpha characters \begin{tabular}{l|l} LAB \\ ACTIVITY & 4.15.1: LAB: Remove all non alpha characters \end{tabular} 0/10 LabProgram.java Load default template.. \begin{tabular}{|l} Develop mode Submit mode When done developing your program, press the Submit for grading button below. This will \\ submit your program for auto-grading \end{tabular} Submit for grading Output is nearly correct, but whitespace differs. See highights below special character legend Input This!\$@sentence. Your output Thissentence Expectedoutput Thissentence Output is nearly correct, but whitespace differs. See highlights below. Input flying Your output flying Expected output flyingStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started