Q:

how to declare null value to integer in android

I want to know how I should declare a Integer with Null Value in Android. 
Here is my code:
btnload.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            String getDate, getEpayee, getEcategory;
            int getEamt;
            getDate= "";

            getEamt="";  //This Eamt variable is of integer type and
                                       //this gives me a error. 

            getEpayee ="";
            getEcategory="";

A:

int is a primitive type in Java; hence you cannot set it to null (it is not an Object). 
if getEamt is an int, you cannot initialize it to a String.  If you really want to set an integer to null you need to use the Integer class.