Ad
  • Custom User Avatar

    I think that's what they meant, it would be more performant to use a StringBuilder in this case.

  • Custom User Avatar

    It's a concatenation to a string based on whether a character is less than character value for 5. I'm not sure where you're getting that I'm incrementing a string, += on a string is concatenation without saying string = string + "value";.

    You should probably understand the code before you comment on it telling someone what you think they did wrong.

  • Custom User Avatar

    how is this best practice ? You're incrementing a string! A string builder should be used here