2020-10-19 Use of .contains("")

As the name implies
, the value in contains String.contains("") is used to determine whether it contains this value, and it is mostly used to return boolean after the judgment.

example:

 mRemoteViews.setTextViewText(R.id.notifi, !info.contains("null") ? info : getResources().getString(R.string.unbound));

Guess you like

Origin blog.csdn.net/weixin_41422638/article/details/109157149