public static List < String > asListOfChars ( String text ) { List < String > list = new ArrayList <> ( ) ; if ( StringUtils . isNullOrEmptyTrimmed ( text ) ) { return list ; } for ( int i = 0 ; i < text . length ( ) ; i ++ ) { list . add ( Character . toString ( text . charAt ( i ) ) ) ; } return list ; }
Converts text to list of characters