• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

masking of nulls

 
Anuj Anand
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to mask nulls and zeroes to spaces in java.Can somebody suggest me how to do that
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic