Question: in java please 1) Write a method which is passed a String. It returns the index of the last Roman Numeral (recall that the Roman
in java please
1) Write a method which is passed a String. It returns the index of the last Roman Numeral (recall that the Roman Numerals are {'I', 'V', 'X', 'L', 'C', 'D', 'M'}) found in the String or -1 if no Roman Numeral is found in the String.
2) Write a method which is passed a String s and returns a String that's exactly the same as s, but with no vowels.
3) Write a method appendIfMissing which is passed a String s and a String e (for ending). If s doesn't already end with e, the method returns a new String which consists of the contents of s concatenated with e. It returns s otherwise. For example, if s refers to the String "lightningbug" and e refers to the String "bug", the method returns "lightningbug". If s refers to the String "Airplane II", and e refers to the String ": the Sequel", the method returns "Airplane II: the Sequel".
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
