class Github {
var username: String = ""
var contacts: Map<String, String> = mapOf()
var aliases: List<String> = listOf()
var location: String = ""
var age: String = ""
var occupation: String = ""
var operatingSystem: String = ""
var progLang: List<String> = listOf()
fun init() {
username = "Imdvlpr99"
contacts = mapOf(
"Instagram" to "yuhuu_saps",
"LinkedIn" to "Agung Jaya"
)
aliases = listOf("imdvlpr", "dev")
location = "localhost, Indonesia"
age = "Undefined"
occupation = "Freelance Developer"
operatingSystem = "Windows, Linux"
progLang = listOf("Kotlin", "Java", "Dart", "Javascript", "Typescript")
}
}
fun main() {
val github = Github()
github.init()
// Accessing the properties
println("Username: ${github.username}")
println("Contacts: ${github.contacts}")
println("Aliases: ${github.aliases}")
println("Location: ${github.location}")
println("Age: ${github.age}")
println("Occupation: ${github.occupation}")
println("Operating System: ${github.operatingSystem}")
println("Programming Language: ${github.progLang}")
}
Pinned Loading
-
-
daily-buddy
daily-buddy PublicAn ToDo List App to track daily activity, integrated with REST API
Dart 1
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.