Skip to content


Percorrendo uma string em java

Antes de tudo eu queria deixar claro que:
Eu não morri!
Troquei de emprego e tenho novos projetos.

Agora vamos ao que interessa.

Percorrer uma string em java é simples.

String str = new String("Java");
for(int i = 0; i < str.length(); i++)
System.out.println(str.charAt(i));

Posted in Java.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.