码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
STL学习笔记之sstream
int转string #include #include #include using namespace std ; int main() { int int_s = 12345 ; string s ; //声明字符串s stringstream stream ; //声明stream stream << int_s ; ...
分类:其他好文   时间:2015-04-10 09:41:29    阅读次数:142
Java基础之各种排序算法
import java.util.Scanner; /**  * @author 杨川  *  */ public class Sort {     public static void main(String[] args) {         int a[] = input();         insertSort(a);         shellSort(a...
分类:编程语言   时间:2015-04-10 09:40:58    阅读次数:121
Java基础之BigInteger,BigDecimal
JAVA的两个类BigInteger和BigDecimal分别表示大整数类和大浮点数类,理论上能够表示无限大的数。 1:大整数:BigInteger import java.util.*;   import java.math.*;      public class Test {       public static void main(String[] arg...
分类:编程语言   时间:2015-04-10 09:38:01    阅读次数:184
【android】时间选择器
OnDateSetListener listener = new OnDateSetListener() { @Override public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) { // TODO Auto-generated method stub String str = null;...
分类:移动开发   时间:2015-04-10 09:37:25    阅读次数:151
hdu2030(汉字统计)java水过
hdu2030 思路:汉字机内码在计算机的表达方式的描述是,使用二个字节,每个字节最高位一位为1。计算机中, 补码第一位是符号位, 1 表示为负数,所以汉字机内码的每个字节表示的十进制数都是负数,且汉字占用两个字节结果要除以2,不要忘了。 import java.util.*; class Main{ public static void main(String []args){ ...
分类:编程语言   时间:2015-04-10 09:31:47    阅读次数:251
43.Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2015-04-10 07:03:41    阅读次数:114
Longest Substring Without Repeating Characters
题目:Given a string, find the length of the longest substring without repeating characters.For example, the longest substring without repeating letters ...
分类:其他好文   时间:2015-04-10 07:00:16    阅读次数:120
二进制流BinaryFormatter存储读取数据的细节测试
二进制流的使用很方便,为了更好的理解应用它,我创建简单对象开始测试它的增加特性和减少特性. [Serializable] class Data----------开始时候的存储对象 { public string name = "nam...
分类:其他好文   时间:2015-04-10 06:32:10    阅读次数:213
Java多线程安全
package SwingExample; public class MultiThreadSafe implements Runnable{ private int nTicketCount = 10; // 剩余火车票数量 private String strPurchaserName; // 购票人姓名 public static void main(String[] args...
分类:编程语言   时间:2015-04-10 01:23:09    阅读次数:170
Spring(六)AOP切入方式
一、接口切入方式实现类package com.pb.entity;/** * 实体类 */public class Hello { private String name; private String password; public void show(){ ...
分类:编程语言   时间:2015-04-10 01:14:31    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!