Quick actions

cmd+k|ctrl+k

Navigation

Languages

java-if-else-switch2

Snippet info

Language

Java

Visibility

public

Author

w3xue

Created

2023-01-06T07:58:26.997319Z

Updated

2023-01-06T07:58:43.326059Z

public class Test {
 
   public static void main(String args[]){
      int x = 30;
 
      if( x < 20 ){
         System.out.print("这是 if 语句");
      }else{
         System.out.print("这是 else 语句");
      }
   }
}
INFO