Top "String" questions

A string is a finite sequence of symbols, commonly used for text, though sometimes for arbitrary data.

How do I get a substring of a string in Python?

Is there a way to substring a string in Python, to get a new string from the third character to …

python string substring
Convert bytes to a string

I'm using this code to get standard output from an external program: >>> from subprocess import * >>&…

python string python-3.x
How to convert list to string

How can I convert a list to a string using Python?

python string list
How do I lowercase a string in Python?

Is there a way to convert a string from uppercase, or even part uppercase to lowercase? For example, "Kilometers" → "kilometers".

python string uppercase lowercase
How do I convert from int to String?

I'm working on a project where all conversions from int to String are done like this: int i = 5; String strI = "" + …

java string type-conversion
How to check if a string contains a substring in Bash

I have a string in Bash: string="My string" How can I test if it contains another string? if [ $string ?? …

string bash shell substring sh
How do I iterate over the words of a string?

I'm trying to iterate over the words of a string. The string can be assumed to be composed of words …

c++ string split
How do I make the first letter of a string uppercase in JavaScript?

How do I make the first letter of a string uppercase, but not change the case of any of the …

javascript string letter capitalize
How do I read / convert an InputStream into a String in Java?

If you have a object, how should you process that object and produce a String? Suppose I …

java string io stream inputstream
Java string to date conversion

What is the best way to convert a String in the format 'January 2, 2010' to a Date in Java? Ultimately, …

java string date time data-conversion