active.java
Anonymous
plain_text
01/17/2021 5:49 AM
392 B
11
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...