📜  IF..ELSE 语句示例 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:27.440000             🧑  作者: Mango

代码示例1
public class Test {

   public static void main(String args[]) {
      int x = 30;

      if( x < 20 ) {
         System.out.print("This is if statement");
      }else {
         System.out.print("This is else statement");
      }
   }
}