Robert MacLean
18 June 2018
**More Information**
- Code for the 4th Koan can be found here.
- This is the 4th post in a multipart series.
If you want to read more, see our series index
Previously we covered Named Arguments and this is a small continuation from it, we start with a simple function fun foo(name: String): String = todoTask3()
and we need to have it call a single Java function and to provide it with default values which ultimately looks like this:
fun foo(name: String, number: Int = 42, toUpperCase: Boolean = false): String = JavaCode3().foo(name, number, toUpperCase)