Joke Collection Website - Talk about mood - "".equals(name) and name.equals ("") and name == null? How to use it?
"".equals(name) and name.equals ("") and name == null? How to use it?
"".equals(name) and name.equals ("") are the same, and there is no difference. Judging whether it is an empty character is different, such as name == null and name.equals (""). If you are a string of spaces in a string name, then name==null does not hold, but name.equals ("") does.
- Previous article:Why did Korean housing prices plummet? What caused it?
- Next article:Hate a person's character after being cheated.
- Related articles
- Talk about being cool.
- Mobile phone beauty, Xiu Xiu, where is the arrow?
- What does the girl mean by green jade?
- A short sentence about the lovelorn mood in 2020
- How to improve learning efficiency? Write 400 words.
- I want to ask Yue Yue to take care of Zi Yue, but my mother-in-law doesn't agree. How can I convince her?
- How to raise silkworms?
- Cheer for the children's senior high school entrance examination.
- Talk about breaking up with friends in the copywriting contest.
- Tell me something interesting about robbery.