Printing double as integer if there are no decimals
farkhad (0)

Why "s1" and "s2" are different in the provided example code?

You are viewing a single comment. View All
farkhad (0)

@malvoliothegood okay, still doesn't make sense in particular this example of code.
I mean v == v2 is always true, so I was expecting s1.equals(s2) == true, which is not.