You are not logged in.
Announcement
Unanswered posts
|
According to your example in the code picture you want to return true or false.
Hi janhess
Thanks For your Replies..... your code will return a Boolean value but i want to return 0 or 1.
Thanks In Advance
LMIT
You appear to have an error in isBlank.
public static boolean isBlank(String str) {
int strLen;
if (str == null || (strLen = str.length()) == 0) {
return true;
}
for (int i = 0; i < strLen; i++) {
if ((Character.isWhitespace(str.charAt(i)) == false)) {
return false;
}
}
return true;
}
Hi Lmit
Sorry for my delay to answer.
Last time I imported routines.system.StringUtils. I think what you need is to import org.apache.commons.lang.StringUtils which contains isBlank() method.
Regards,
Pedro
Hi Pedro,
Thank For your reply
isBlank() method is there in stringUtils which checks whether the string is whitespace, empty ("") or null.
the function of the method (which i want is)
I want to check whether is string is null or not.
Thanks,
Lmit
Hi Lmit
What's the function of this method?
First, you forgot to import StringUtils.
Second, there is no isBlank() method in StringUtils.
Regards,
Pedro
Hi All,
I want to use a method isBlank() in tmap, i have written the routine also but getting error... am attaching the screen shot of my code....
Can any one give a better solution for this..It could be a greatful
Thanks In Advance
Lmit