题目Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".代码public class Solution {
public String addBinary(String a, String b) {
S...
分类:
数据库 时间:
2015-02-15 18:11:30
阅读次数:
220
一天一段scala代码(八)
为了更好的驾驭spark,最近在学习scala语言特性,主要看《快学scala》,顺便把一些自己认为有用的代码记下来。
package examples
class Person8
{
var name:String=""
def this(name:String)
{...
分类:
其他好文 时间:
2015-02-15 18:09:22
阅读次数:
128
一般处理程序后台 //获取页面参数 string count = context.Request["startCount"]; string descri = context.Request["starDescri"]; //返回处理结果 context.Response.Write("true"....
分类:
Web程序 时间:
2015-02-15 18:02:17
阅读次数:
164
如何:将 Windows 服务作为控制台应用程序运行向你运行OnStart和OnStop方法的服务添加一个方法: internal void TestStartupAndStop(string[] args) { this.OnStart(args)...
//添加标注,比TextElment功能更强大 public static void ToAddAnnotate(ILayer layer, string fieldName) { IGeoFeatureLayer pGeoLayer = laye...
分类:
其他好文 时间:
2015-02-15 17:54:26
阅读次数:
222
创建 cell 或者 附加视图1、在此之前注册funcregisterClass(_cellClass:AnyClass?,forCellWithReuseIdentifieridentifier:String)funcregisterClass(_viewClass:AnyClass?,forSu...
分类:
其他好文 时间:
2015-02-15 16:36:04
阅读次数:
186
unit Iso8601Unit;interfacetype TIso8601 = class(TObject) public class function DateTimeFromIso8601(const Value: string): TDateTime; static; cl...
分类:
其他好文 时间:
2015-02-15 16:32:33
阅读次数:
129
转自:http://coolshell.cn/articles/1106.html让我们先来看一段代码: 1 public class Test { 2 public static void main(String[] args) { 3 SubClass subClass ...
分类:
其他好文 时间:
2015-02-15 16:30:51
阅读次数:
127
声明:原创作品,转载时请注明文章来自SAP师太技术博客:www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将追究法律责任!原文链接:http://www.cnblogs.com/jiangzhengjun/p/4292946.html字符串表达式Stri...
分类:
其他好文 时间:
2015-02-15 16:29:44
阅读次数:
368
原文出处:http://www.venishjoe.net/2009/11/java-string-concatenation-and.html转自:http://coolshell.cn/articles/2235.html概述:本文主要研究的是JAVA的字符串拼接的性能,原文中的测试代码在功能上...
分类:
其他好文 时间:
2015-02-15 16:26:37
阅读次数:
109