aspose file tools*
The moose likes Servlets and the fly likes masking of nulls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "masking of nulls" Watch "masking of nulls" New topic
Author

masking of nulls

Anuj Anand
Ranch Hand

Joined: Nov 18, 2000
Posts: 96
I want to mask nulls and zeroes to spaces in java.Can somebody suggest me how to do that
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Before outputting the String, simply check if it's null. If it is, reassign it to the String " "

The code involves an if statement, but that's the only two clues you'll get from me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: masking of nulls