79773284

Date: 2025-09-24 05:16:07
Score: 2
Natty:
Report link

\\s+ this regular expression works when u want to skip one or more white spaces in the string
Consider you wanna store all the words in an array
u can write like this

String[] words = string.split("\\s+");

This will give all the words in the String, neglecting one or more white spaces in the string itself.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gowri Tharun