Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Scala'da Döngü İfadeleri Yazımdaki Örnek 1
// Java
int i = 1;
while (i <= 10) {
System.out.println(i + "!");
i++;
}
System.out.println("Önüm, arkam, sağım, solum, sobe!");
// Scala
var i = 1
while (i <= 10) {
println(i + "!")
i += 1
}
println("Önüm, arkam, sağım, solum, sobe!")
// Romantik Scala geliştiricisi
while (true) {
println("Seni seviyorum!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.