code: public static boolean hasLineFeed(String str) {
  	int len = str.length();
  	char c;
  	for (int i = 0; i < len; i++) {
  	    c = str.charAt(i);
  	    if (c == '\n' || c == '\r') return true;
  	}
  	return false;
      }
docs: return if in a string are line feeds or not
  
  @param str string to check
  @return translated string