Question: This is done in replit using Java The first two pictures are the skeleton code mentioned in the first (both in different classes). The goal

 This is done in replit using Java The first two picturesare the skeleton code mentioned in the first (both in different classes).The goal of the code is also in the last photo (remove

This is done in replit using Java

The first two pictures are the skeleton code mentioned in the first (both in different classes). The goal of the code is also in the last photo (remove the specified letter from the string)

import static java.lang. System.*; public class Letter Remover Runner { public static void main( String args[] ) { LetterRemover test = new LetterRemover("I am Sam I am", 'a'); out.println(test); out.println(test.removeLetters()+" "); test.setRemover("SsSsssssxssssesssssesss",'S'); out.println(test); out.println(test.removeLetters()+" "); test.setRemover("qwertyqwertyqwerty", 'a'); out.println(test); out.println(test.removeLetters()+" "); test.setRemover ("abababababa", 'b'); out.println(test); out.println(test.removeLetters()+" "); test.setRemover("abaababababa", 'x'); out.println(test); out.println(test.removeLetters()+" "); } } import static java.lang. System. *; public class Letter Remover { private String sentence; private char lookFor; public LetterRemover() { //call set } //add in second constructor public void setRemover (String s, char rem) { sentence = S; LookFor = rem; } public String removeLetters { String cleaned-sentence; return cleaned; } public String toString { return sentence + " } letter to remove 11 + lookFor; } EXERCISE LETTERREMOVER Using multiple classes, with a constructor, accessor and modifier methods, complete the Distance program. You must use the code skeleton provided Read the lab below and use the code skeleton to complete. Lab Goal: This lab was designed to teach you how to use a while loop. Lab Description: Remove all instances of the specified removal letter from the original sentence. Files Needed : LetterRemoverRunner.java LetterRemover.java Sample Data : I am Sam I am a Ssssssssssssesssssssss qwertyqwertyqwerty a abababababa b abaababababa x Sample Output: I am Sam I am - letter to remove a Im Sm Im ssssssssssssesssssesss - letter to remove s qwertyqwertyqwerty - letter to remove a qwertyqwertyqwerty abababababa - letter to remove b aaaaaa abaababababa - letter to remove x abaababababa

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!