>>316
出したくないならaをまずiに置き換えた上、○ですと出した後continueすればいいでしょ。
このままやるなら

System.out.println("5です");
} else {
System.out.println(a);
}

とすればおk