Question: Java Question: Create a class called ParsingUtils. Add a static method: public static vold changeLetter(StringBullder sb, char letter) Convert all occurrences of the letter

Java Question: Create a class called ParsingUtils. Add a static method: public static vold changeLetter(StringBullder sb, char letter) Convert all occurrences of the letter variable in the StringBullder to upper case. Overload the method described in the previous question. The signature will be public static void changeLetter(StringBuilder sb, String letters) Make it so any letters from the second parameter found in the StringBuilder are converted to uppercase. CaseDemo2: import java.util.Scanner; public class CaseDemo2{ public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.println("Enter a String"); } String Builder sb = new StringBuilder(keyboard.nextLine()); System.out.println("Which characters should be converted to uppercase?"); String chars = keyboard.nextLine(); ParsingUtils.changeLetter(sb, chars); System.out.println(sb); Q1. Write a program in generic java program to execute the pre order traversal of the following Binary tree (5-marks) F G by using the class private void Traverse (Node node, in depth, StringBuilder sb)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
