walkthroughs/week-5-tdd/intro/src/main/java/com/google/sps/Greeter.java
/**
   * Returns a greeting for the given name.
   */
Returns a greeting for the given name.
Returns a greeting for the given name .
public String greet(String name) {
    String[] splitName = name.split("\\W+");
    String newName = "";    
    for(int i = 0; i < splitName.length; i++) {
      newName += splitName[i];
    }
    return "Hello " + newName;
  }
public String greet ( String name ) { String [ ] splitName = name . split ( "\\W+" ) ; String newName = "" ; for ( int i = 0 ; i < splitName . length ; i ++ ) { newName += splitName [ i ] ; } return "Hello " + newName ; }
Returns a greeting for the given name.
Returns a greeting for the given name .