Basic problem - heightmap generator

Hello.
I’m trying to learn how to generate heightmap but unfortunately I have problem with this.
I wanted to start from something simple.
I found this tutorial
http://www.mbsoftworks.sk/index.php?page=tutorials&series=1&tutorial=8
but as I already mentioned it doesn’t work because in 100% I’m doing something wrong and what you can see on this image

http://img35.imageshack.us/img35/5405/hightmap.png

Here
http://pastebin.com/KtweuK5M
is my whole code but basic method are “setupQuad()”, “loopCycle()” and method generating vertices “getVertices()”.
I’m pretty sure there is some problem with indices array.
Ignore color array and shaders.
I will be grateful for your help.
Maybe someone of you have same basic working example heghtmap in java and could share it with me (if I do not ask for too much).

Please use pastebin.

And put it in separate files.

Ok, I figured out that I made mistake in function “getVertices()” where loop making only one step ‘i++’ so my vertices are overriding.
I’m not increasing correctly array index
height[i]
height[i+1]
height[i+2]

Ehhh, silly me.