Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Check Empty String

In this example we are checking a sting object containing empty or null value.

Tutorial Details:

The class org.apache.commons.lang.StringUtils extends Object class and provides methods that operate on null safe string.

The methods used:
isBlank(String str): This method is used to check whether a string is empty ("") , null or whitespace.


 

Rate Tutorial:
http://www.roseindia.net/java/beginners/CheckEmptyStringExample.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Check Empty String

View Tutorial:
Check Empty String

Related Tutorials:

Java Q&A - Java Still Open
Java Q&A - Java Still Open
 
Designing with exceptions - JavaWorld - July 1998
Designing with exceptions - JavaWorld - July 1998
 
Build your own ObjectPool in Java to boost app speed - JavaWorld - June 1998
Build your own ObjectPool in Java to boost app speed - JavaWorld - June 1998
 
Set a window's minimum size? - JavaWorld October 1999
Set a window's minimum size? - JavaWorld October 1999
 
Behold the power of parametric polymorphism - JavaWorld February 2000
Behold the power of parametric polymorphism - JavaWorld February 2000
 
Reduce EJB network traffic with astral clones - JavaWorld December 2000
Reduce EJB network traffic with astral clones - JavaWorld December 2000
 
XML APIs for databases - JavaWorld January 2000
XML APIs for databases - JavaWorld January 2000
 
Device programming with MIDP, Part 3 - JavaWorld July 2001
Device programming with MIDP, Part 3 - JavaWorld July 2001
 
Develop a generic caching service to improve performance - JavaWorld July 2001
Develop a generic caching service to improve performance - JavaWorld July 2001
 
Use XML data binding to do your laundry
Use XML data binding to do your laundry
 
I want my AOP!, Part 2
I want my AOP!, Part 2
 
Navigate data with the Mapper framework
Navigate data with the Mapper framework
 
A good article/untrapment about Runtime.exec
A good article/untrapment about Runtime.exec
 
Java Tip 130: Do you know your data size?
Java Tip 130: Do you know your data size?
 
Quickly access files and directories you use repeatedly
Quickly access files and directories you use repeatedly
 
Java Tip 134: When catching exceptions, don't cast your net too wide
Java Tip 134: When catching exceptions, don't cast your net too wide
 
Beware the dangers of generic Exceptions
Beware the dangers of generic Exceptions
 
Good, but obsolete
Good, but obsolete
 
Seven Low-Cost Ways to Improve Legacy Code
This article presents seven techniques I\'ve developed and used in my consulting work that are designed to improve legacy code.
 
Struts HTML Tags
Struts HTML Tags Struts HTML Tags Struts provides HTML tag library for easy creation of user interfaces. In this lesson I will show you what all Struts HTML Tags are available to the JSP for the development of user interfaces. To use the Struts
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.