About 11,700,000 results
Open links in new tab
  1. c# - What's does the dollar sign ($"string") do? - Stack Overflow

    C# string interpolation is a method of concatenating,formatting and manipulating strings. This feature was introduced in C# 6.0. Using string interpolation, we can use objects and …

  2. Java: how to initialize String []? - Stack Overflow

    7 String[] errorSoon = new String[n]; With n being how many strings it needs to hold. You can do that in the declaration, or do it without the String [] later on, so long as it's before you try use …

  3. How do I compare strings in Java? - Stack Overflow

    Apr 2, 2013 · String Literals: Moreover, a string literal always refers to the same instance of class String. This is because string literals - or, more generally, strings that are the values of …

  4. How can you encode/decode a string to Base64 in JavaScript?

    btoa() accepts a “string” where each character represents an 8-bit byte – if you pass a string containing characters that can’t be represented in 8 bits, it will probably break. This isn’t a …

  5. c# - How to define an enum with string value? - Stack Overflow

    Dec 21, 2011 · You can't - enum values have to be integral values. You can either use attributes to associate a string value with each enum value, or in this case if every separator is a single …

  6. How to insert a value that contains an apostrophe (single quote)?

    Dec 16, 2009 · The apostrophe, or single quote, is a special character in SQL that specifies the beginning and end of string data. This means that to use it as part of your literal string data …

  7. Difference between string and char[] types in C++ - Stack Overflow

    A string is a class that contains a char array, but automatically manages it for you. Most string implementations have a built-in array of 16 characters (so short strings don't fragment the …

  8. How to escape special characters in building a JSON string?

    A JSON string must be double-quoted, according to the specs, so you don't need to escape '. If you have to use special character in your JSON string, you can escape it using \ character.

  9. string - Regex how to match an optional character - Stack Overflow

    I have a regex that I thought was working correctly until now. I need to match on an optional character. It may be there or it may not. Here are two strings. The top string is matched while …

  10. string - strip () vs lstrip () vs rstrip () in Python - Stack Overflow

    lstrip, rstrip and strip remove characters from the left, right and both ends of a string respectively. By default they remove whitespace characters (space, tabs, linebreaks, etc)