How can I get the nth character of a string? I tried bracket([]) accessor with no luck. var string = "Hello,
I am looking for a way to replace characters in a Swift String. Example: "This is my string" I would like to
How do you get the length of a String? For example, I have a variable defined like: var test1: String = "Scot
Can we get the variables in the query string in Node.js just like we get them in $_GET in PHP? I know that in
I'm using this code to get standard output from an external program: >>> from subprocess import
Consider a database table holding names, with three rows: Peter Paul Mary Is there an easy way to turn this i
I feel a bit thick at this point. I've spent days trying to fully wrap my head around suffix tree constru
I know how to initialize strings in C in two different ways. char str[] = "abcd"; char str[] = {'a'
What is the easiest way to convert the result of Throwable.getStackTrace() to a string that depicts the stackt
What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when decid
I have a string, "004-034556", that I want to split into two strings: string1="004"; string2="034556"; That
The following print statement would print "hello world". Could anyone explain this? System.out.println(random
I've been looking for a simple Java algorithm to generate a pseudo-random alpha-numeric string. In my si