java-operators9

Run Settings
LanguageJava
Language Version
Run Command
public class Test { public static void main(String args[]){ int a , b; a = 10; // 如果 a 等于 1 成立,则设置 b 为 20,否则为 30 b = (a == 1) ? 20 : 30; System.out.println( "Value of b is : " + b ); // 如果 a 等于 10 成立,则设置 b 为 20,否则为 30 b = (a == 10) ? 20 : 30; System.out.println( "Value of b is : " + b ); } }
Editor Settings
Theme
Key bindings
Full width
Lines