Generation

generate functionSat, 12 Nov 2022

root phone

fun rootPhone(phone: String): String { val root = StringBuilder() for (c in phone) { if (c.isDigit()) { root.append(c) } } return root.toString() }

Want to kickstart your project?Use the new AI Studio to create your code