how to split a sting that has multiple spaces code example Example: split funtion in string on multiple spaces String[] sArray = s.split("\\s{2,}");