Question: Direction: Apply appropriate Java coding standards and provide the final answer(Output). Show the output of the following String methods. Note that each number is independent
Direction: Apply appropriate Java coding standards and provide the final answer(Output). Show the output of the following String methods. Note that each number is independent from each other. (12 marks) (Marking Scheme: 2 mark for each correct answer) General declaration: String S1=new String("Welcome to Applet"); String S2=new String("Welcome to AMA"); a. S1.toUpperCase(); 62.toLowerCase(); S1.charAt(3); d S2.replace('e','X'); S2.length(); f. S1.substring(0,6); e
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
