Login  Register

Re: How to fill an array?

Posted by Christopher Coulon-2 on Mar 23, 2016; 2:46am
URL: http://imagej.273.s1.nabble.com/How-to-fill-an-array-tp5015978p5015979.html

a = newArray(10);
for (i = 0; i < 10; i++) {
        a[i] = i;
        print(a[i]);
}

> On Mar 22, 2016, at 7:47 PM, Ramon Silva <[hidden email]> wrote:
>
> Hi,
>
> how do i fill an array like this:
>
> for(i=0; i<10; i++){
>    a[i] = i;
> }
>
> Someone could help me plz?
> Since now i thank your help.
>
> --
>
> *Ramon Costa Silva*
>
> *Graduando em Ciência da Computação.*
>
> *Voluntário: Laboratório Aprendizagem Computacional e Métodos de Otimização
> e Robótica - LACMOR.*
>
> *Estagiário: Núcleo de Tecnologia da Informação - NTI.*
> *Universidade Federal do Maranhão - UFMA.*
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html