File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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