turt2live

Untitled

Feb 1st, 2012
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.11 KB | None | 0 0
  1. int i = 0;
  2. for (MenuItem a : list){
  3.     if(a.isSelectable()){
  4.         a.setID(i);
  5.         i++;
  6.     }else{
  7.         a.setID(-1);
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment