Question: Answer Following Questions: 1. Which method in which class can be used to check if a character is upper case letter or not? 2. Give

Answer Following Questions: 1. Which method in which class can be used to check if a character is upper case letter or not? 2. Give a string str=a string at following location, what will be the return from following method calls? a. str.indexOf(ing); b. str.lastIndexOf(ing); C. str.substring(3,7); 3. What is the difference between the replace method in String class and StringBuilder class? 4. In split method's argument, when do you use []? 5. What is wrong with the following code and how can we fix it? ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
