Reading int[] in the game map
I have a method setGameMap() which has return type: int[] . It contains a set of tiled map stored in arrays. If i want to call this array in another class, how do I set the tiles one by one using for loop? ( e.g. castleMap ) as i want to setCell using LayerManager.
for (int i = 0; i < gs.getGameMap().length; i++) {
int column = i % 30;
int row = (i - column) / 30;
castleLayer.setCell(column, row, ?)
It requires int instead of int[]. What should i put on the question marks?
How to convert int[] to int?

