Top "String" questions

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

java : convert float to String and String to float

How could I convert from float to string or string to float? In my case I need to make the …

java string types number-formatting type-conversion
String.equals versus ==

This code separates a string into tokens and stores them in an array of strings, and then compares a variable …

java string
How to convert a char array to a string?

Converting a C++ string to a char array is pretty straightorward using the c_str function of string and then …

c++ string char arrays
Best way to strip punctuation from a string

It seems like there should be a simpler way than: import string s = "string. With. Punctuation?" # Sample string out = s.…

python string punctuation
ValueError: could not convert string to float: id

I'm running the following python script: #!/usr/bin/python import os,sys from scipy import stats import numpy as np …

python string floating-point
How to convert an int to string in C?

How do you convert an int (integer) to a string? I'm trying to make a function that converts the data …

c string integer
How to convert / cast long to String?

I just created sample BB app, which can allow to choose the date. DateField curDateFld = new DateField("Choose Date: ", System.…

java string type-conversion long-integer
Changing one character in a string

What is the easiest way in Python to replace a character in a string? For example: text = "abcdefg"; text[1] = "Z"; ^

python string
Fastest method to replace all instances of a character in a string

What is the fastest way to replace all instances of a string/character in a string in JavaScript? A while, …

javascript string replace
Split string with multiple delimiters in Python

I found some answers online, but I have no experience with regular expressions, which I believe is what is needed …

python string split delimiter