Put together the code to locate the HelloWorld project inside the CompletedProjects directory.
Works with file hierarchies
Working with Subdirectories
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
projects.maxDepth(1)
val projects = completedProjects.walk()
}
val completedProjects: File = File("/Files/CompletedProjects")
val helloWorldProject: File = projects.first { it.name == "HelloWorld" }
fun main(args: Array<String>) {
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.