https://kotlinlang.org logo
Title
u

user

07/18/2022, 5:41 AM
How to Shuffle List Of Qoutes In Qoutes.json In Kotlin hi i am new to kotlin and want to get shuffeled my qoutes found in asset here is my peice of code private fun loadQuotesList(): Array { val inputStream = context.assets.open("quotes.json") val size :Int = inputStream.available() // find size of input stream val buffer = ByteArray(size)// define byte array and put size inputStream.read(buffer) // read byte array inputStream.close() val json = String(buffer, Charsets.UTF_8) //convert bytearray...