Skip to main content

New answers tagged

4 votes

A simple method for compressing white space in text (Java) - Take II

Readable. (A big plus in my book.) Verbose. I find what benefits I see unconvincing. (Given the ease of copies, the typo // Scan empty suffix is any: is strange.) I'...
greybeard's user avatar
  • 7,711
5 votes
Accepted

A simple method for compressing white space in text (Java) - Take II

For exhaustiveness, I'd probably suggest your test if loIndex equals hiIndex should test to see if the former is greater than or ...
Chris's user avatar
  • 4,634
7 votes
Accepted

A simple method for compressing white space in text (Java)

Simplicity It strikes me that the simplest method to do this is to leverage the standard library. You will want to learn how to use regular expressions. Your effort will be rewarded. ...
Chris's user avatar
  • 4,634
4 votes

Simple random password generator in c#

The public interface of this password generator is bizarre. It exposes three different ways to return passwords that are not obvious in usage: You can enumerate the ...
Olivier Jacot-Descombes's user avatar

Top 50 recent answers are included