Good afternoon friends sorry my english if it is not good because i am using google translator
in a few words … even because in the locality where I am
we don’t have a lot of information about kotlin yet.
so I decided to visit this elegant forum because I believe you can give me this strength.
I’m starting in the Kotlin language and I still don’t know enough …
I build my projects with java … But I think I can build solutions
best using kotlin, jse, jfx and other languages …
I believe in that a lot.
one of my doubts is how to receive data from an arraylist
so that the “Int” numbers are printed with increasing numbers,
from smallest to largest
look what I did, will it be if someone can help me? =)
if by chance someone can also implement the result
so that the name and age appear in a growing way will help me a lot in this new beginning
val nome1: String=“Mike”;
val nome2: String=“valentina”;
val nome4: String=“carol”;
val nomes= arrayOf(nome1,nome2,nome3,nome4) val idades= arrayOf(inome1,inome2,inome3,inome4); System.out.println("quantidade de cadastro" +nomes.size); System.out.println("pessoas cadastradas: " + "\n nome:" +nome1+" idade "+inome1+ " \n nome: "+nome2+" idade "+inome2+ " \n nome: "+nome3+" idade "+inome3+ "\n nome: "+nome4+" idade "+inome4 );
tried to use a loop in for as in java … but it didn’t work