Switch to full style
General Java code examples
Post a reply

check empty number

Sat May 22, 2010 10:17 pm

Following example check if the a number is empty or not :
Code:

  
public boolean isEmptyNumber(Long number){

         if(
number==null || number==0)  {
           return 
true
         } else {
            return 
false
          }
      




Post a reply
  Related Posts  to : check empty number
 Check empty string     -  
 [Ajax/PHP] Registration - Check for empty textboxs     -  
 check if number is odd or even     -  
 lesson6: XSD Complex Empty Elements     -  
 convert integer number to octal,hexadecimal number systems     -  
 convert octal number to decimal number     -  
 convert decimal number to octal number     -  
 Check DNS error     -  
 check if domain name is taken by php     -  
 code for check availability     -  

Topic Tags

Java Variables