Java beginners #3: methods