Question: Write a function to display a greeting message exactly like the examples below. Note that you only need to put the code of the

Write a function to display a greeting message exactly like the examples

Write a function to display a greeting message exactly like the examples below. Note that you only need to put the code of the function in the answer box and nothing else (do NOT put other code of the class in the answer box). For example: Test greeting ("John", "Smith"); Result Answer: (penalty regime: 0 %) Hello John Smith! How are you? greeting ("Frogory", "Green"); Hello Frogory Green! How are you? Reset answer 1 public static void greeting(String firstName, String lastName) { 2 // write your code here 3 |}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above qu... View full answer

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 Programming Questions!