Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can someone help me with basic array

Featured Replies

"ind" is your indice number, the array[ i ], i means the position in the array which accompanies an element in the array.

 

Say you have:

int array[] = { 9, 8, 7, 6};

and then you type array[0] it will return the number 9 in the array list.

Maybe this will help you visualize easier:

 

Array+in+Java+Comparision.gif

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

  • Author

thanks guys, i understand it now

but why would they put array[ind] instead of int[ind] seeing as it is only holding one value right?

nvm i get it, it records the index number

Edited by justanotherkid

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.