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#?

25 Nov at 06:19

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.

7 Apr at 07:25

Check if string contains \n Java

Check if string contains \n Java How do I check if string contains \n or new line character ?

1 Apr at 20:28

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`?

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

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?

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!

18 Jul at 15:46

Convert String to Uri

Convert String to Uri How can I convert a String to a Uri in Java (Android)? i.e.:

30 Jul at 12:41

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"`?

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?

7 Oct at 04:59

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?

11 Dec at 12:17

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"?

5 Dec at 05:49

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

20 Nov at 12:49

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?

7 Feb at 17:7

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:

14 Dec at 00:8

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`?

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?

compare two string value

compare two string value I'd like to compare two string values​​, like this: ``` if (lblCapacity.Text

23 Apr at 13:13

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:

17 Nov at 18:57

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

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++?

21 Mar at 14:24

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`?

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.

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#?

4 Mar at 03:28

C# Version Of SQL LIKE

C# Version Of SQL LIKE Is there any way to search patterns in strings in C#? Something like Sql LIKE would be very useful.

24 Mar at 09:27