Write the program segment for the following questions. ALL question are not
related.
5. set the array item with size 10 with the following data: 3, 5, 7, 9, 11 and 5, 10, 15, 20, 25
6. Let say the array arrayList was declared with size 15. Set the array arrayList with the following data 10, 15, 20, 25, ... using assignment statement
for(int i=0;i<15;i++)
{
arrayList[i]=temp;
temp+=5;
}
Comments
Leave a comment