Cheat Sheet for Java to Kotlin #4
Mengsreang-Chhoeung
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Print to Console
Constants and Variables
Assigning the null value
Verify if value is null
Verify if value is NotNull OR NotEmpty
Concatenation of strings
New line in string
Substring
Ternary Operations
Bitwise Operators
Check the type and casting
Check the type and casting (implicit)
Multiple conditions
Multiple Conditions (Switch case)
For-loops
Collections
for each
Splitting arrays
Defining methods
Default values for method parameters
Variable number of arguments
Defining methods with return
Returning result of an operation
Constructors
Getters and Setters
Cloning or copying
Class methods
Generics
Defining uninitialized objects
enum
Sorting List
Anonymous Class
Initialization block
Important things to know in Kotlin
For more details, please check out this fork:
👉 From Java To Kotlin
Beta Was this translation helpful? Give feedback.
All reactions