我需要调用这个
{private static final NumberFormat currencyFormat = NumberFormat.getCurrencyInstance();}
在 Android 应用程序中,但我使用的是 Kotlin,但我不知道如何在 Kotlin 中执行此操作。我如何在 Kotlin 中执行此操作?
最佳答案
使用如下:
private val currencyFormat = NumberFormat.getCurrencyInstance()
关于android - 在 Kotlin Android 中使用 NumberFormat.getCurrency,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47321514/