active.java
unknown
plain_text
5 years ago
292 B
5
Indexable
public class active{
public static void reverse (String[] words){
for(int i=0; i<words.length; i++){
for(int j=words[i].length()-1; j>=0; j--){
String w = words[i];
System.out.print(w.toCharArray()[j]);
}
System.out.println();
}
}
}Editor is loading...