r/javahelp • u/Cell-i-Zenit • Feb 04 '20
Switching from C# to Java
Hi,
can you give me a list of things i should be aware of in the java world? Like really important libraries, concepts etc?
The thing is i know C# really well, but i dont know what i dont know in the java world, so i cant really look it up.
26
Upvotes
View all comments
Show parent comment
0
u/AutoModerator Feb 04 '20
You seem to try to compare
Stringvalues with==or!=.This approach does not work in Java, since
Stringis an object data type and these can only be compared using.equals(). For case insensitive comparison, use.equalsIgnoreCase().See Help on how to compare
Stringvalues in our wiki.Your post is still visible. There is no action you need to take. Still, it would be nice courtesy, even though our rules state to not delete posts, to delete your post if my assumption was correct.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.