Open Luro02 opened 1 month ago
int c = 0; boolean spaceBefore = true; String word = ""; while (c < sentence.length()) { if (Character.isWhitespace(sentence.charAt(c))) { spaceBefore = true; } else if (spaceBefore) { word += sentence.charAt(c); spaceBefore = false; } c++; } return word;
No response
<code>
Summary
Lint Name
No response
Reproducer