Question: complete the two methods in java public class ExerciseMethods1{ boolean method returns true if the given string ends with the same Letter it begins with,

complete the two methods in java

complete the two methods in java public class ExerciseMethods1{ boolean method returns

public class ExerciseMethods1{ boolean method returns true if the given string ends with the same Letter it begins with, regardless of case (false if otherwise) firstLastEqual ("Robert") returns false firstLastEqual ("Ariana") returns true firstLastEqual ("Taco cat") returns true firstLastEqual ("42") returns false firstLastEqual("") returns false firstLastEqual ("Goodness, clean up that dog") returns true firstLastEqual ("Hohoho")) returns false @param original String, @return true if (ignoring case) the first letter is the same as the last Letter (Not just last character). False otherwise. public static boolean firstLastEqual(String original) { // Your answer here. Edit the return statement as necessary. return false; }// end firstLastEqual boolean method that returns true if the string has punctuation [.!?] (false if otherwise) hasPunctuation("The total will be 12.50") returns true hasPunctuation ("Today is the best ever! I wish you were here to enjoy it") returns true hasPunctuation("I had so much work today") returns false hasPunctuation("I'd love to get ice cream with you") returns false hasPunctuation("") returns false hasPunctuation("8675309") returns false hasPunctuation("Where are you from?")) returns true @param original String, @return true if an exclamation point, period, or question mark is contained. False otherwise. public static boolean hasPunctuation(String original) { // Your answer here. Edit the return statement as necessary. return false; }// end hasPunctuation

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!