String s = " geeks for geeks has all java functions to read "; // Printing String after removing the whitespaces // from the string System.out.println(s.trim());
String s = " geeks for geeks has all java functions to read "; // Printing String after removing the whitespaces // from the string System.out.println(s.trim());