reading value from ArrayList

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can i access arraylist value as (int) i want access value of the index 4
of the arraylist shown below.

Any suggestions?

Permissions[0]
{Length=8}
[0]: {1}
[1]: {1}
[2]: "Awlad Hussain"
[3]: "ahussain"
[4]: {1}
[5]: {0}
[6]: {1}
[7]: {0}
 
Not really sure why you are mixing datatypes in the same ArrayList, but this
might work.

int tmp = -1;
if(Permission[0] is int){
tmp = (int)Permission[0];
}
 
Back
Top