package if条件语句;public class Example { public static void main(String[] args){ int x=5; if(x<10) { x++; } System.out.println("x="+x); }}
结果: