ExercicioStrings

Propaganda
Exercício Strings
JAVA API reference -> Classe String
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html
1) Pedir uma String ao utilizador
2) Imprimir a String na vertical, letra a letra
3) Idem, por ordem inversa
4) Construir String inversa e imprimir
Sugestões usar funções seguintes da classe String:
charAt(int indice)
length()
concat(String s)
valueOf(char c)
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#charAt(int)
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#length()
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#concat(java.lang.String)
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#valueOf(char)
Download