Guest User

Untitled

a guest
Apr 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. public int getSpecificAccountIndex(int nr)
  2.     {
  3.         int index = 0;
  4.         for( int i = 0; i < accountList.size(); i++)
  5.         {
  6.             if(accountList.get(i).getAccountNumber() == nr)
  7.             {
  8.                 index = accountList.indexOf(i);
  9.             }
  10.         }
  11.         return index;
  12.     }
Add Comment
Please, Sign In to add comment