public class Reverse {
public static void main(String [] args){
System.out.println(reverse(array));
String[] array = {"I","L","O","V","E","Y","O","U"};
}
public static String reverse(String phrase){
for(int i = phrase.length()-1; i >= 0; i--){
System.out.println(phrase.charAt(i));
}//end of loop
return phrase;
}//end of second class
}//end of reverse class
有只小跳蛙
红糖糍粑
相关分类