how can I print a single character from a string every time??
in array , a word "language" is stored
I would like to print a single reversed character every time
the output is
however, I print the wrong result
I know I should not use substring
But I don't know what method can fit my requirement
So, I hope people can help me
Thank you very much!
for ( int y = 0; y < tempStr.length() - 1; y++ ) System.out.println(tempStr.substring(tempStr.length()- y));