Java2D Render Tiled Map

Hello everyone,

I’m pretty new here and have basic knowlegde about java. I have a LUA background, but know basic Java.

I’ve started playing around with generate maps with two dimensional array and i fell in love with it. I saw this: http://www.cokeandcode.com/info/showsrc/showsrc.php?src=../../collision/tilemaps/src/org/newdawn/tilemap/Map.java

My setup look almost like this, but i added a camera: http://www.cokeandcode.com/main/tutorials/tile-maps/

My question: Is this a good way to render tiles? And also how can i only render tiles only inside my camera view.

Thanks everyone.