通常是if语句: if(variable==60) {system.out.println("60");}
if(variable==60) {system.out.println("60");}
但我想测试是否variable与单词完全匹配.
variable
例如,用户输入一个文本框'hello'如何创建一个if语句,说明用户是否输入'hello'system.out.println ....?
java if-statement
if-statement ×1
java ×1