Question: Please use java (b) Write a method named quote that takes 2 String's that are passed as, arguments The first is a quote, and the

 Please use java (b) Write a method named "quote" that takes

Please use java

(b) Write a method named "quote" that takes 2 "String's that are passed as, arguments The first is a quote, and the second is the author. The method should return a string that has the quote in quotes and put a hyphen before the author. For instance. The output of "System.out.println(quote("I am Iron Man.", "Tony Stark")); would be "I am Iron Man." -Tony Stark (Note: the string has quotes as characters in the String. You do not have to write any "main" method or method call.)

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!