public static void assertNotEmpty ( final String pstring , final String pmessage ) { if ( pstring == null || pstring . length ( ) == 0 ) { throw new IllegalArgumentException ( pmessage ) ; } }
check if a string is not empty .