What do you want to save?
Add Code snippet
New code examples in category Kotlin
-
Phoenix Logan 2022-03-27 07:40:17
var and val in kotlin
val and var both are used to declare a variable. var is like general variable and it's known as a mutable variable in kotlin and can be assigned multiple times. val is like Final variable and it's known as immutable in kotlin and can be initialized only s... Add solution -
-
A-312 2022-03-16 13:50:04
okhttp kotlin example
val BASE_URL = "https://api.unsplash.com" val ACCESS_KEY = "..." val path = "/photos/$id" val uri = Uri.parse(BASE_URL) .buildUpon() .appendEncodedPath(path) //.appendPath(path) .build() val client = OkHttpC... Add solution -
A-312 2022-03-07 04:30:37
spring boot kotlin
@RunWith(SpringRunner::class) @SpringBootTest(classes = arrayOf(KotlinDemoApplication::class), webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) class KotlinDemoApplicationTests { @Autowired lateinit var testRestTemplate: TestRestTem... Add solution
Best helpers
Ranking is empty