equality tag

5 questions


1 answers
153 views
0
How do I compare strings?

I always used == when comparing strings, but when I changed it to .equals() because of a bug while coding last time, It's fixed. Why did == get a bug? What's the difference from equals()

1 years ago

1 answers
142 views
0
Is it wrong to use the == operator when comparing float in Java?

Here java.According to the sun page, == is an equivalent comparison operator for floating point number in Java.However, write these codes in the editor:if(sectionID == currentSectionID)When I run Stat...


1 answers
159 views
0
Where is the function/operator where C finds out that two objects are the same?

Where is the C standard function that determines whether two instances are the same or not?I used == or is in Python, but I can't find it in C

1 years ago

1 answers
131 views
0
How do I compare strings in Java?

How do I compare strings in Java?I've used the == operator to compare strings until now.But as I continued to use it, there were often situations where bugs occurred, and some of them.Fixed bug after ...

1 years ago

1 answers
64 views
0
To check if double is a Not a Number (NaN)

I want to check if the value of double is NaN in Java, what should I do?

1 years ago

© 2024 OneMinuteCode. All rights reserved.