What is the Java equivalent of the following Scala code snippet?
val codeLength = 8
val value: Long = 12345678
("0" * codeLength + value.toString).takeRight(codeLength)
It is the third line I am particularly interested in knowing what the Java 8 equivalent is.