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?

[559 byte] By [Jasonca] at [2007-11-26 23:37:00]
# 1
> ...> How to convert int[] to int?You can't just cast an array of values to a single value.What would be the integer value of this array: [1,2,3,4,5]?
prometheuzza at 2007-7-11 15:00:01 > top of Java-index,Other Topics,Java Game Development...