tagged [string]
What is the difference between a mutable and immutable string in C#?
What is the difference between a mutable and immutable string in C#? What is the difference between a mutable and immutable string in C#?
Convert array of strings into a string in Java
Convert array of strings into a string in Java I want the Java code for converting an array of strings into an string.
Check if string contains \n Java
Check if string contains \n Java How do I check if string contains \n or new line character ?
Why does the String class not have a parameterless constructor?
Why does the String class not have a parameterless constructor? `int` and `object` have a parameterless constructor. Why not `string`?
- Modified
- 19 May at 08:26
String.Format - how it works and how to implement custom formatstrings
String.Format - how it works and how to implement custom formatstrings With `String.Format()` it is possible to format for example `DateTime` objects in many different ways. Every time I am looking fo...
- Modified
- 9 May at 15:27
String comparison - strA.ToLower()==strB.ToLower() or strA.Equals(strB,StringComparisonType)?
String comparison - strA.ToLower()==strB.ToLower() or strA.Equals(strB,StringComparisonType)? As per title, what practise for string comparisons do you use and why?
- Modified
- 2 Nov at 09:43
Extracting date from a string in Python
Extracting date from a string in Python How can I extract the date from a string like "monkey 2010-07-10 love banana"? Thanks!
Convert String to Uri
Convert String to Uri How can I convert a String to a Uri in Java (Android)? i.e.:
Count character occurrences in a string in C++
Count character occurrences in a string in C++ How can I count the number of `"_"` in a string like `"bla_bla_blabla_bla"`?
- Modified
- 10 Jul at 11:42
C#: how to get first char of a string?
C#: how to get first char of a string? Can the first `char` of a string be retrieved by doing the following?
How many bytes will a string take up?
How many bytes will a string take up? Can anyone tell me how many bytes the below string will take up?
Replace string within file contents
Replace string within file contents How can I open a file, Stud.txt, and then replace any occurences of "A" with "Orange"?
why does ReferenceEquals(s1,s2) returns true
why does ReferenceEquals(s1,s2) returns true Here s1, s2 are different but then why ReferenceEquals() is returning true
Bytes of a string in Java
Bytes of a string in Java In Java, if I have a String `x`, how can I calculate the number of bytes in that string?
Removing the first 3 characters from a string
Removing the first 3 characters from a string What is the most efficient way to remove the first 3 characters of a string? For example:
How do I convert a String to an int in Java?
How do I convert a String to an int in Java? How can I convert a `String` to an `int`?
- Modified
- 25 Jan at 13:11
Convert String to double in Java
Convert String to double in Java How can I convert a `String` such as `"12.34"` to a `double` in Java?
- Modified
- 30 Dec at 19:48
compare two string value
compare two string value I'd like to compare two string values, like this: ``` if (lblCapacity.Text
Does swift have a trim method on String?
Does swift have a trim method on String? Does swift have a trim method on String? For example:
In C#, what is the best method to format a string as XML?
In C#, what is the best method to format a string as XML? I am creating a lightweight editor in C# and would like to know the best method for converting a string into a nicely formatted XML string. I ...
- Modified
- 3 Oct at 23:8
Find out if string ends with another string in C++
Find out if string ends with another string in C++ How can I find out if a string ends with another string in C++?
Converting a String to DateTime
Converting a String to DateTime How do you convert a string such as `2009-05-08 14:40:52,531` into a `DateTime`?
- Modified
- 7 Dec at 17:45
What's the difference between %s and %d in Python string formatting?
What's the difference between %s and %d in Python string formatting? I don't understand what `%s` and `%d` do and how they work.
- Modified
- 22 Sep at 17:7
string replace single quote to double quote in C#
string replace single quote to double quote in C# How can I replace a single quote (') with a double quote (") in a string in C#?