java using textpad. Atm code not having any syntax error but runs funny

Printable View