How I can get text from a JTextArea character by character for processing each element of a string?
I tried this:
int i, nrlitere;
int[] valori = new int[100];
int aux;
int contor;
String a = new String(new char[10000]);
i = 1;
contor = 0;
nrlitere = intrare.getText().length();
do{
contor++;
i++;
a = intrare.getText();
System.out.print(a.charAt(i));
nrlitere--;
}
while(nrlitere!=0);
But it prints only the second character of a string
P.S: I also want to get spaces as characters
Thanks in advance!