i need to store a DatSet value into ArrayList
while(result.next())
{
String Adress= result.getString(1);
String Name = result.getstring(2);
}
now the loop executes and i want to store the value of loop in the array list so can anybody please help me on this i am new to arraylist.
Here’s a simple example:
You must create a class to hold the row data, then add the objects of that class to an ArrayList.s