java basic code demo