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 androidx.compose.material3.MaterialTheme | |
import androidx.compose.runtime.Composable | |
import androidx.compose.ui.graphics.Color | |
class MaterialColors { | |
companion object { | |
const val SURFACE = "SURFACE" | |
const val INVERSE_SURFACE = "INVERSE_SURFACE" | |
const val ON_SURFACE = "ON_SURFACE" |
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.* | |
import kotlin.collections.ArrayList | |
fun main() { | |
// The Array work like the variable, | |
// but the variable store one value in each time, | |
// the array can store many many many values in the same time. | |
//Note : index of the array begin from the '0'. |
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
@file:Suppress("CAST_NEVER_SUCCEEDS") | |
fun main() { | |
/** String Attachments */ | |
val a = "string" | |
.substring() // for print the string as range (start,end). | |
.substringAfter() // for remove all the string before the first delimiter in the string. | |
.substringAfterLast() // for remove all the string before the last delimiter in the string |