Chrissy_Love
Mitglied
Also quasi mit einem array rückwerts durch gehen?
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
public static void ausgabe(String st)
{
int length = st.length();
if (length > 0)
{
System.out.print(st.charAt(0));
ausgabe (st.substring(1, length));
System.out.print(st.charAt(0));
}
}
public static void ausgabeIter(String st){
char[] st = text.toCharArray();
int length = st.length;
for(int i = length-1; i >= 0; i--) {
System.out.print(st[i]);
}
}