码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Android 调用系统的分享[完美实现同时分享图片和文字]
android 系统的分享功能 private void share(String content, Uri uri){ Intent shareIntent = new Intent(Intent.ACTION_SEND); if(uri!=null){ //uri 是图片的地址 shareIntent.putExtra(Intent.EXTRA_S...
分类:移动开发   时间:2015-06-03 13:48:45    阅读次数:214
java常量池概念 详解及用途
在class文件中,“常量池”是最复杂也最值得关注的内容。   Java是一种动态连接的语言,常量池的作用非常重要,常量池中除了包含代码中所定义的各种基本类型(如int、long等等)和对象型(如String及数组)的常量值还,还包含一些以文本形式出现的符号引用,比如:   类和接口的全限定名;   字段的名称和描述符;   方法和名称和描述符。   在C语言中,如果...
分类:编程语言   时间:2015-06-03 13:43:59    阅读次数:147
卡特兰数问题
问题:给定N个节点,能构成多少种不同的二叉树.回答:卡特兰数运用.import java.util.*;import java.math.*;public class Main{ public static void main(String[] args) { int n; Scanner in=....
分类:其他好文   时间:2015-06-03 13:38:30    阅读次数:82
Format Characters
【Format Characters】 A format character may be preceded by an integral repeat count. For example, the format string '4h' means exactly the same as '...
分类:其他好文   时间:2015-06-03 13:38:05    阅读次数:123
redis小试牛刀01
简单动态字符串(SDS):simple dynamic string,C字符串最后多一个空字符,SDS比C字符串更适合redis优点:1)C字符串长度要遍历,长度复杂度为O(n),SDS直接记录字符串长度,长度复杂度为O(1) 2)由于C字符串不记录字符串长度,易造成溢出,SDS空间分配策略完...
分类:其他好文   时间:2015-06-03 13:34:18    阅读次数:126
java基础(四)
一:API:API:Application Programming Interface 应用程序编程接口二:STRING类:字符串直接复制的方式是先到字符串常量池里去查找,如果有就直接返回,没有,就创建并返回。1.String s = new String("hello") 和 String s =...
分类:编程语言   时间:2015-06-03 13:23:55    阅读次数:127
oracle 条件:1=1或1=0,动态添加条件
看到where语句中有条件:where 1=1 和 1=2或11用途: 1=1:是为了添加条件时使用and并列其他条件时使用的(动态连接后续条件) 比如: String sql = "select * from emp where 1=1 "; if(username...
分类:数据库   时间:2015-06-03 13:10:24    阅读次数:161
leetcode 17 -- Letter Combinations of a Phone Number
Letter Combinations of a Phone Number 题目: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho...
分类:其他好文   时间:2015-06-03 11:56:06    阅读次数:91
java基础入门-泛型(1)
为什么需要使用泛型? 1.代码复用 2.保证类型安全 3.编程的便利 下面上代码说明代码复用 1)建立一个Animal的父类 package com.ray.test; public class Animal { private String name="Animal"; public String getName() { return name; } pub...
分类:编程语言   时间:2015-06-03 11:48:33    阅读次数:160
简单验证码识别 tessnet2
今天突然间对识别验证码感兴趣,于是网上搜了一下最简单的是引用tessnet2.dll,然后通过它来识别,代码如下 1 private void button1_Click(object sender, EventArgs e) 2 { 3 string s...
分类:Web程序   时间:2015-06-03 11:44:25    阅读次数:324
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!