結果 : different pattern questions in java