You can do something like this if don’t need access to the outer class in the inner class (which you wouldn’t have in Java given that your inner class was declared static):
object A{
class B {
val x = 3
}
}
class A {
// implementation of class here
}
println(new A.B().x)