I guess if you put it that way it makes sense, but the way you presented the tutorial wasn't the best. A small overview would've helped as well rather than posting the code right off the bat. :/
Well my second point was really long and critical so I removed it. I just don't like the fact you posted code and explained it to them. I think Java tutorials should be done separately as a pre-requisite from scripting always.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.