S - AN OVERVIEW

s - An Overview

The 's' replaces one Area match at a time however the 's+' replaces The entire space sequence at the same time with the next parameter.Even so x.replaceAll("s+", ""); might be extra economical technique for trimming Areas (if string may have a number of contiguous spaces) simply because of potentially much less no of replacements due the to proven

read more