大约有 45,000 项符合查询结果(耗时:0.0538秒) [XML]
Java associative-array
... arrays, however this could easily be achieved using a Map. E.g.,
Map<String, String> map = new HashMap<String, String>();
map.put("name", "demo");
map.put("fname", "fdemo");
// etc
map.get("name"); // returns "demo"
Even more accurate to your example (since you can replace String w...
Leading zeros for Int in Swift
I'd like to convert an Int in Swift to a String with leading zeros. For example consider this code:
10 Answers
...
Write a function that returns the longest palindrome in a given string
...hm in O(n) time! Its implementation can be found here and here.
For input String s = "HYTBCABADEFGHABCDEDCBAGHTFYW1234567887654321ZWETYGDE" it finds the correct output which is 1234567887654321.
share
|
...
How to remove part of a string? [closed]
How can I remove part of a string?
9 Answers
9
...
string to string array conversion in java
I have a string = "name";
I want to convert into a string array.
How do I do it?
Is there any java built in function? Manually I can do it but I'm searching for a java built in function.
...
Returning a C string from a function
I am trying to return a C string from a function, but it's not working. Here is my code.
14 Answers
...
How does strtok() split the string into tokens in C?
...in to me the working of strtok() function. The manual says it breaks the string into tokens. I am unable to understand from the manual what it actually does.
...
Java multiline string
...Perl, I sure am missing the "here-document" means of creating a multi-line string in source code:
42 Answers
...
Swift double to string
Before I updated xCode 6, I had no problems casting a double to a string but now it gives me an error
14 Answers
...
How to build a query string for a URL in C#?
A common task when calling web resources from a code is building a query string to including all the necessary parameters. While by all means no rocket science, there are some nifty details you need to take care of like, appending an & if not the first parameter, encoding the parameters etc.
...