About 9,590,000 results
Open links in new tab
  1. 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 …

  2. What is the difference between String[] and String... in Java?

    What's actually the difference between String[] and String... if any? The convention is to use String[] as the main method parameter, but using String... works too, since when you 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. java - String.equals versus == - Stack Overflow

    Let's see it happen in Java terms. Here's the source code of String's equals() method: It compares the Strings character by character, in order to come to a conclusion that they are indeed equal. …

  5. 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 …

  6. Converting 'ArrayList<String> to 'String []' in Java - Stack Overflow

    Oct 28, 2010 · How might I convert an ArrayList<String> object to a String [] array in Java?

  7. 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 …

  8. What is the difference between types String and string?

    String is the JavaScript String type, which you could use to create new strings. Nobody does this as in JavaScript the literals are considered better, so s2 in the example above creates a new …

  9. 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 …

  10. c# - What does $ mean before a string? - Stack Overflow

    You can use an interpolated string anywhere you can use a string literal. When running your program would execute the code with the interpolated string literal, the code computes a new …