Java String Trimming trim() Removes only the leading & trailing spaces. From Java Doc, "Returns a string whose value is this string, with any leading and trailing whitespace removed." System.out.println(" D ev Dum my ".trim()); "D ev Dum my" Reference https://docs.oracle.com/javase/7/docs/api/java/lang/String.html .... Read more
No comments:
Post a Comment