Returning Strings 8 kyu: Codewars Solutions

Returning Strings

Make a function that will return a greeting statement that uses an input; your program should return, "Hello, <name> how are you doing today?".

[Make sure you type the exact thing I wrote or the program may not execute properly]

Solution

public class Kata
{
  public static String greet(String name)
  {
    return "Hello, " + name +" how are you doing today?";
  }
}
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments