//Mysql Query to get project
while(query.next())
{
Map objname=new Hashmap();
//Mysql query to get day and hours of respective project
while(dayandhourquery.next())
{
objname.put(day,hour);
}
}
I've a query to get project name,days and hours.and I want to put day and hours in Hashmap with respective project. While doing this above code,I am getting the details with the last project.