码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Multiply Strings -- leetcode
Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. 用字符串表示的整数,做乘法运算。 如人工做乘法运算的步骤一样,实现了本算...
分类:其他好文   时间:2015-01-19 09:22:47    阅读次数:136
Linq to SQL Contains
说明:用于判断集合中是否包含有某一元素;不延迟。它是对两个序列进行连接操作的。string[] customerID_Set = new string[] { "AROUT", "BOLID", "FISSA" };var q = ( from o in db.Orders whe...
分类:数据库   时间:2015-01-19 09:10:34    阅读次数:208
linq学习(from)
第一种(多个from的查询)(我的理解 相当于sql中 的子查询 、 嵌套查询)比如一个学生类 注意此时的分数是一个集合class Student { public string Name { get; set; } p...
分类:其他好文   时间:2015-01-19 09:08:41    阅读次数:166
Linq学习(join)
//学生类 public class Stu { public int ID { set; get; } //学生的编号 public string Name { set; get; } //学生的姓名 public int CourseId ...
分类:其他好文   时间:2015-01-19 09:08:30    阅读次数:141
linq学习(Last和First)
比如一个学生类class Student { public string Name { get; set; } public int Score { get; set; } public stri...
分类:其他好文   时间:2015-01-19 09:08:02    阅读次数:188
特定情况下的本地化
class Program { static void Main(string[] args) { PP p = new PP(null); Console.Read(); } } public ...
分类:其他好文   时间:2015-01-19 01:36:21    阅读次数:240
【java解惑】重载构造函数
如下所示代码:publicclassExample046{ privateExample046(Objecto){ System.out.println("Object"); } privateExample046(double[]dArray){//2 System.out.println("doublearray"); } privateExample046(Stringstr){//3 System.out.println("string"); } pub..
分类:编程语言   时间:2015-01-19 00:26:18    阅读次数:273
spark foldByKey
package com.latrobe.spark import org.apache.spark.{SparkContext, SparkConf} /** * Created by spark on 15-1-18. */ object FoldByKey { def main(args: Array[String]) { val conf = new SparkConf(...
分类:数据库   时间:2015-01-19 00:19:50    阅读次数:782
多线程练习--顺序打印ABC十次
这是迅雷的一道面试题,顺序打印ABC十次。 public class TenABC { public static void main(String[] args) { final BlockingQueue queue = new ArrayBlockingQueue(30); for (int i = 0; i < 10; i++) { try { queu...
分类:编程语言   时间:2015-01-19 00:15:38    阅读次数:379
使用hadoop的类操作HDFS
1.创建文件夹 private static final String PATH = "hdfs://hadoop:9000/"; private static final String DIR = "/d2"; public static void main(String...
分类:其他好文   时间:2015-01-19 00:12:26    阅读次数:263
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!