protected boolean isStressed(String phone){
  return phone.endsWith("1");
}

protected boolean isStressed ( String phone ) { return phone . endsWith ( "1" ) ; }
determines if the given phonene is stressed . to determine stress , this method relies upon a phone ending in the number " 1 " . subclasses should override this method if stresses are determined in other ways .
