Question: solve in java code please 6.19 LAB: Remove spaces - methods Write a program that removes all spaces from the given input. Ex: If the
solve in java code please
6.19 LAB: Remove spaces - methods Write a program that removes all spaces from the given input. Ex: If the input is: Hello my name is John. the output is: HellomynameisJohn. Your program must define and call the following method. The method should return a string representing the input string without spaces. public static String removeSpaces (String userString) Note: This is a lab from a previous chapter that now requires the use of a method. 3025041237408 LAB ACTIVITY 6.19.1: LAB: Remove spaces - methods 0/10 LabProgram.java Load default template... 1 import java.util.Scanner; 3 public class LabProgram 4 5 /* Define your method here */ 6 7 public static void main(String[] args) { 8 /* Type your code here. */ 9 } 10 ) 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
