Characters | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Characters

Can I compare multiple characters at once ?? For a program to generate random sentences I want ā€œAnā€ to come before words beginning with vowels and the same with ā€œAā€ but with consonants.

3rd Oct 2018, 11:16 PM
Alexis C. Student
Alexis C. Student - avatar
1 Resposta
+ 1
You want to compare String or String [] all you have to do is run the first character of the string. ChatAt(0)
4th Oct 2018, 4:16 AM
Daniel (kabura)
Daniel (kabura) - avatar