Reversing A String Using Recursive Function

 

import java.util.*;

public class StringReverse{

public static String stringRev(String s){
if((null == s ) || (s.length() <=1)){
return s;
}
return stringRev(s.substring(1))+s.charAt(0);
}
public static void main(String args[]){
String s ="Sudeep Kumar Bondwal";

System.out.println(stringRev(s));
}
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...