摘要 : 最近在博客园里面看到有人在讨论 C# String的一些特性. 大部分情况下是从CODING的角度来讨论String. 本人觉得非常好奇, 在运行时态, String是如何与这些特性联系上的. 本文将侧重在通过WinDBG来观察String在进程内的布局, 以此来解释C# String的一...
分类:
数据库 时间:
2015-01-09 01:36:05
阅读次数:
281
doGet请求方式: String path = "http://192.168.22.73:8080/web/LoginServlet?username="+URLEncoder.encode(name, "utf-8")+"&password="+URLEncoder.encode(pwd, "...
分类:
移动开发 时间:
2015-01-09 01:34:23
阅读次数:
233
C# Codepublic class TestClass{ private static string Str = string.Empty; public TestClass() { if (string.IsNullOrEmpty(Str)) { ...
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input case...
分类:
其他好文 时间:
2015-01-09 00:16:53
阅读次数:
233
经典算法:(整理汇总)1)如何快速倒叙:public static char[] reverseArray(char[] c){ char t; for(int i=0;imap=newHashMap(); for(inti=0;i>entries=map.entrySet(); for(E...
分类:
其他好文 时间:
2015-01-09 00:08:12
阅读次数:
311
1、LINQ to XML类 以下的代码演示了如何使用LINQ to XML来快速创建一个xml: 隐藏行号 复制代码 ? 创建 XML public static void CreateDocument() { string path = @"d:\website"; XDocument xdoc...
分类:
其他好文 时间:
2015-01-09 00:03:15
阅读次数:
416
最近在看视频学习,把相关的知识记录,汇总一下,js的原始数据类型包含五种:number、string、boolean、null、undefined还有一个大家常见到的也就是object(Date、Function、Array等)如何判断类型,主要有以下几种:typeof、instanceof、Obj...
分类:
Web程序 时间:
2015-01-08 23:57:59
阅读次数:
449
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Input:Digit st...
分类:
其他好文 时间:
2015-01-08 22:51:58
阅读次数:
270
/*
* 思路:
* 1.取得两个list的相同元素:list.retainAll(E)方法
* 2.两个list分别去掉相同的元素:list.removeAll(E);
* 3.将剩下的两个List分别加入到一个新的List去:addAll
*/
public class Test1 {
public static void main(String[] args) {
List ...
分类:
其他好文 时间:
2015-01-08 22:50:21
阅读次数:
197
public static void main(String[] args) {
//要排序的数组
int[] arr = { 2, 5, 7, 1, 3, 8, 6, 4 };
// 控制数组中的每一个元素下标,要比较的那个元素符号
for (int i = 0; i < arr.length; i++) {
//操作与i元素比较的所有元素下标
for (in...
分类:
编程语言 时间:
2015-01-08 22:48:25
阅读次数:
278