Hi all,
hope u guys r fine.
i have a question about array.im using double array,but seems cant support bigger size and im planning to change it to arraylist.but the problem is, can i update the data in arraylist?
int value[]={9,8,9,7,9,7};
int[][] myTupple = new int[count][value.length];
repetition =1;
for(int i=value.length-1;i>=0;i--)
{
if(s.charAt(i)=='1')
{
int currentTupple=0;
while(currentTupple < count)
{
for(int j=1;j<=value[i];j++)
{
for(int k=0;k<repetition;k++)
{
myTupple[currentTupple][i]=j;
currentTupple++;
}
}
}
repetition *= value[i];//****
}
im using nested for loop,thats why in d beginning i used double array,but seems problem with double array,so plan to change to arraylist.
anything that i can do?if i can use arraylist, how it works?like double array i can see its like a coodinate (column.row)