Skip to content

Kotlin File#2

Open
anshuman35 wants to merge 17 commits into
websitefrom
master
Open

Kotlin File#2
anshuman35 wants to merge 17 commits into
websitefrom
master

Conversation

@anshuman35

Copy link
Copy Markdown

fun findLocation(Continent:String,file: String) {
val parts = Continent.split("j")
var count = 0
for (part in parts) {
count += part.length + 1
if (part == "") {

        findLocation("Africa")
        findLocation("Australia")
    } else {
        Thread.sleep(100 * (part.length + 1L))
        if (count < Continent.length) {
            findLocation("Asia")
            findLocation("North America")
            findLocation("Europe")
        }
    }

}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants