Characters | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
+ 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