Code example for Vector

Methods: elementAt, size

0
                return temp;
        } 
 
        public byte[][] getCurrentLevel() 
        { 
                if (currentLevel < levelList.size())
                { 
                        return (byte[][])levelList.elementAt(currentLevel);
                } 
 
                return null; 
        } 
 
        public void goToNextLevel() 
        { 
                currentLevel++;
                if (currentLevel >= levelList.size()) {
                  currentLevel = 0;
                } 
        }