added scheme and kotlin to code_search

This commit is contained in:
Dhanji R. Prasanna
2025-11-05 14:17:15 +11:00
parent 26e26cf367
commit 4327c839a9
7 changed files with 99 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
package com.example
class Person(val name: String, val age: Int) {
fun greet() {
println("Hello, I'm $name")
}
fun getAge(): Int {
return age
}
}
interface Greeter {
fun sayHello()
}
fun main() {
val person = Person("Alice", 30)
person.greet()
}
fun add(a: Int, b: Int): Int {
return a + b
}