![](/img/trans.png)
[英]WhatsApp sticker whitelist returns false for both true and false when received result in React Native
[英]bootlean returns true or false how to compare the result?
如何將bootlean與字符串進行比較? 我試圖將bootlean更改為字符串輸出,但由於checkemail函數要求使用bootlean而無法這樣做。
檢查電子郵件指出,如果它是有效的電子郵件...,則返回“ true”或“ false”。
boolean sefsd = checkemails(e.getText().toString());
if(sefsd.toString().equals("false")){ //do something}
if (!sefsd) {
// sefsd == false
}
關於if語句的文章。
嘗試在進行Android編程之前先學習Java。
如果checkmails
返回boolean
類型,則執行
if (sefsd == false) { /*do something */ }
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.