Jump to content
  • 0

Value for Int[]


Question

Posted

I would like to know how I get the value of a list, for example I configured a list like this 100;100;100;30;30, I just want to retrieve the values 100 and get the value of 3 as would be done by an int[ ] ?

2 answers to this question

Recommended Posts

  • 0
Posted

Your question is a bit unclear, if you're looking for a value at a specific index in the list, you may use List.get(index) method. It's similar to what you would use in an array, for example if you want the 2nd element of an array you would use: array[1], if you want the same element from a list you would use: List.get(1). Remember that for lists, like arrays, index starts from 0 and not from 1.

 

 

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
Answer this question...

×   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.



  • Posts

    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Refunded Too bad that you couldn't finish it on time.
    • I've been trying to set-up an Interlude server for the past few days and did get one up and running, but it's a mess. Even the "gold" standard files shared here didn't give better results.   I am wondering which are the current best projects to invest in? - AdvExt64 looks like crap - no offense to the developers. - And I've seen a few more related projects - Athena Project? also not good looking in general.   Is it true L2Reborn is Java based?  Really curious to know if there are good server packs or services to buy there - protocol 110? I really dig the look and feel of l2reborn.   Let me know what you guys think
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
  • Topics

×
×
  • Create New...