Hi Beatrice,

Here's a psuedo code to get you started:

initialize i to 100
for each element x of the array
        assign i to array[x]
        print array[x]
        increment i
next element

Hope this gets you started

Dan

Béatrice [email protected] wrote:
> Hi !
> 
> I've a problem with the exercice My JavaArrayProject.
> Here's the question :
> 
> Just before the for loop that prints out the value of each entry of
> the ages[] array, create another for loop in which a value of 100 is
> assigned to the first entry of the array, ages[0], 101 to the next
> entry of the array, ages[1], and so on.
> 
> I don't know how to do it.
> Can you help me ?
> Thanks
> 
> Beatrice
> 
> > 

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to