failed try on changing java code

I don't get java. I try to do the exact same coding the the stupid
script and it still won't work!