Question: String dataFields and character replaceChar are read from input. Assign converted DataFields with a copy of dataFields where all occurrences of character '#' are replaced

String dataFields and character replaceChar are read from input. Assign converted DataFields with a copy of dataFields where all occurrences of character '#' are replaced with replaceChar. Ex: If the input is: Abe#Abe#Tia#Fay#Zoe then the output is: Abe. Abe.Tia. Fay. Zoe 3 public class ReplaceCharacters { 45 6 7 8 9 10 11 12 13 14 15 16 17 } public static void main(String[] args) { Scanner scnr = new Scanner(System.in); String dataFields; char replaceChar; String convertedDataFields; } dataFields scnr .nextLine(); replaceChar = scnr.next().charAt(0); Your code goes here */ System.out.println(convertedDataFields)

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!