I can't figure it out, is there any way to use jav...
# announcements
b
I can't figure it out, is there any way to use java.* class using fully qualified name when there is something with name "java" already in scope?
k
I don't think so, this is quite specific simple smile . Perhaps you can use renamed imports as a workaround:
Copy code
import java.math.BigInteger as Foo

fun foo() {
    val java = 3
    val x = Foo.ONE
}
b
I found a way to do it using
java.nio.file
.Path
slack won't let me type it correctly
just wrapping the package name around `
k
Ah right, smart.
Why do you need a fully qualified name?
b
because gradle default imports conflict with java.nio.file.Path and Paths
k
And you can't name it
NioPath
or something?
b
I didn't use kotlin much before so I obviously didn't know it's a feature