I am preparing an application which takes information and displays it..
I used arraylist to get elements from database..
In above line noD=No. of Days..
This is how I get data
using for loop i display the data as
There are certain noD in database which has no value and it is displayed as null and others as it is....
Now I want to display these null elements as 0... how to achieve that....
I used arraylist to get elements from database..
Code:
ArrayList<String> noD = new ArrayList<String>();
This is how I get data
Code:
noD.add(rs1.getString("noD"));
Code:
noD.get(loop variable)
There are certain noD in database which has no value and it is displayed as null and others as it is....
Now I want to display these null elements as 0... how to achieve that....
Comment