src/main/java/org/jboss/seam/examples/seamcrm/tools/StringTools.java
public static boolean containsMultipleLines(String str) {
        if (!str.trim().isEmpty()) {
            Scanner s = new Scanner(str);
            s.nextLine();
            return s.hasNextLine();
        } else {
            return false;
        }
    }
/**
     * Check if a String has more than one line
     * @param str
     * @return
     */
Check if a String has more than one line
@param str
@return
Check if a String has more than one line @param str @return
public static boolean containsMultipleLines(String str) {
        if (!str.trim().isEmpty()) {
            Scanner s = new Scanner(str);
            s.nextLine();
            return s.hasNextLine();
        } else {
            return false;
        }
    }
public static boolean containsMultipleLines ( String str ) { if ( ! str . trim ( ) . isEmpty ( ) ) { Scanner s = new Scanner ( str ) ; s . nextLine ( ) ; return s . hasNextLine ( ) ; } else { return false ; } }
Check if a String has more than one line
 @param str
 @return
Check if a String has more than one line @param str @return