Remove all spaces in a String Using in-build Function.

 

import java.util.*;

public class RemoveSpacesInString1 {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
System.out.println("INPUT A STRING");
String in = sc.nextLine();

String out = in.replaceAll("\\s+","");

System.out.println("The Entered String :");
System.out.println(in);
System.out.println("The String without Spaces :");
System.out.println(out);


}
}

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...