Created
September 16, 2022 05:44
-
-
Save s1monw1/d70cf039d54e4d2e2d0c8e245399d84f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Calendar | |
// ... | |
val date: Int = Calendar.getInstance().run { | |
set(Calendar.YEAR, 2030) | |
get(Calendar.DAY_OF_YEAR) //return value of run | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment