How to add dynamic values to java new new Object[] with diffrent type of values : I am currently using like below, but i don't know how to add values dynamically to this array,

    Object[] oParams = new Object[] {
    	Integer.valueOf(this.userId),
    	Date.valueOf(this.startDate), 
    	Date.valueOf(this.endDate) 
    };
    				
Thanks in advance.