我试图检查属性是否等于字符串,但我一直收到此错误
码:
if (prop.getProperty("quit").equal("true")) {
}
Run Code Online (Sandbox Code Playgroud)
错误:
cannot find symbol
symbol: method equal(java.lang.String)
location: class java.lang.String
Run Code Online (Sandbox Code Playgroud)