Kotlin by JetBrains (@kotlin) 's Twitter Profile
Kotlin by JetBrains

@kotlin

Discover what’s going on in the Kotlin ecosystem | @JetBrains

Video tutorials kotl.in/video
News kotl.in/news
Community discussions kotl.in/slack

ID: 334678478

linkhttp://kotlinlang.org calendar_today13-07-2011 14:01:04

3,3K Tweet

163,163K Followers

1 Following

Kotlin by JetBrains (@kotlin) 's Twitter Profile Photo

Comparing two strings irrespective of their capitalization? Don’t create new strings with toLower() to compare them. Instead, use equals(), which has an option to ignore case when comparing two strings. This way you won’t have to allocate any extra strings to do the comparison.