Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Java Please: k * * stringReformat takes a person's name in the format and t reformats it to the form Preconditions: the string is
In Java Please:
k * * stringReformat takes a person's name in the formatk Alex P Keaton"public static String stringReformat( String name) String theAnswer"this is not the answer" // example code starts here: delete or comment out when you have completed the function String subExamplename.substring(1,5); // some example code char theChar-name . charAt (4); Stdout.println(" stringReformat demol. the substring (1,5) is: ubExample); if ( theChar = ', ' ) Stdout.println(" stringReformat demo2. the character in position 4 is a comma") else Stdout.println(" stringReformat demo2. the character in position 4 is NOT a comma, it is: "+ theChar); // end of example code return theAnswer / TODO 3: fix this
Step 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