Jump to content

Can someone help me with basic array


justanotherkid

Recommended Posts

for(int i = 0; i < arrays.length; i++){
 //Here is where I mean
}

Creates a loop that'll keep looping whilst the value of i is less than the length of the Array arrays.

In this case you're declaring a loop that initialises a value of i that starts at zero.

i++ means after each loop it'll increase the value of i by 1.

in the case of array, i is the index in the array defined above.

so on the first loop array would be 1, on the second loop 23, ect.

Although I have no idea what ind is or what kind of tutorials you're following.

Maybe someone else can clear that up

 

Oh I didn't read the full thing 0.0 I see why it has heaps of underscores now xD

 

Edited by Isolate
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...