Please find the most frequently ask java question on interview ie "Program to reverse String Array without using the inbuilt function"
package program;
public class StringReverse {
String[] input={"Welcome"};
int i;
char rev11[];
void ReversStr(){
char rev11[] = input[i].toCharArray();//since we know that we cant traversed String Array ,hence we have to change String array into Char array
System.out.println("Array after reverse:");
for (int i = rev11.length-1; i>=0; i--)
System.out.print(rev11[i]);
}
public static void main(String[] args) {
StringReverse obj=new StringReverse();
obj.ReversStr();
}
}