mirror of
https://github.com/AdrianKuta/Tree-Data-Structure.git
synced 2025-09-16 23:44:21 +02:00
feat: Upgrade build gradle to 7.0.2
This commit is contained in:
@@ -2,11 +2,28 @@ package com.github.adriankuta.treedatastructure
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import com.github.adriankuta.datastructure.tree.tree
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_main)
|
||||
|
||||
val root =
|
||||
tree("World") {
|
||||
child("North America") {
|
||||
child("USA") {
|
||||
child("LA")
|
||||
child("New York")
|
||||
}
|
||||
}
|
||||
child("Europe") {
|
||||
child("Poland")
|
||||
child("Germany")
|
||||
}
|
||||
}
|
||||
Log.d("DEBUG_TAG", root.prettyString())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user