I am using StringUtils class in Android code. but exception generated i.e. class not found. But already i used jar file for that class. Please help me!
The StringUtils class defines certain words related to String handling. null - null. empty - a zero-length string ( "" ) space - the space character ( ' ' , char 32) whitespace - the characters defined by Character.isWhitespace(char)
Return value This method returns true if the string is null or the length of the string is zero; otherwise, it returns false .
Most common use of StringUtils is in web projects (when you want to check for blank or null strings, checking if a string is number, splitting strings with some token). StringUtils helps to get rid of those nasty NumberFormat and Null exceptions. But StringUtils can be used anywhere String is used.
Try not to use external libraries. Look always for an Android alternative.
For this specific case, you could use: android.text.TextUtils
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With