码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
用java程序直接访问URL地址
/** * 程序中访问http数据接口 */ public static String getURLContent(String urlStr) { /** 网络的url地址 */ URL url = null; /** http连接 */ HttpURLConnection http...
分类:编程语言   时间:2015-03-31 10:36:49    阅读次数:215
c# winform 程序用126邮箱发邮件
代码如下: private void button1_Click(object sender, EventArgs e) { string strTitle = "alert! We have not receive new data from me...
分类:Windows程序   时间:2015-03-31 10:36:25    阅读次数:144
Jquery jcarousellite 参数说明
参数说明:btnPrev string 上一个按钮的class名, 比如 btnPrev: ".prev"btnNext string 下一个按钮的class名, 比如 btnPrev: ".prev"btnGo array 自定义滚动位置,类似幻灯片效果置,有选项卡,按照数组顺序,依次为按钮1按钮...
分类:Web程序   时间:2015-03-31 10:33:10    阅读次数:136
时间戳和本地时间的转换
时间戳是全世界统一的,对应世界时(UniversalTime);本地时间对应LocalTime;public static string GetTimeStamp( DateTime date) { TimeSpan ts = date.ToUniversalTi...
分类:其他好文   时间:2015-03-31 10:27:55    阅读次数:123
SQL查询(笔记2——实体查询)
SQL查询(笔记2——实体查询) 二、实体查询如果查询返回了某个数据表的全部数据列,且该数据表有对应的持久化类映射,我们就把查询结果转换成实体查询。将查询结果转换成实体,可以使用SQLQuery提供的多个重载addEntity()方法。 String sqlString = "select * fr...
分类:数据库   时间:2015-03-31 10:24:19    阅读次数:146
查找整数
import java.io.*; public class Main{ public static void main(String[]args)throws Exception{ BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseI...
分类:其他好文   时间:2015-03-31 09:16:58    阅读次数:124
NYOJ题目5---Binary String Matching
Binary String Matching 时间限制:3000 ms  |  内存限制:65535 KB 难度:3 描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as...
分类:其他好文   时间:2015-03-31 09:12:58    阅读次数:122
android log的两种方法
有两种方法使用log log类 log level: verbose:任何消息 debug:输出调试消息 information:一般提示性的信息,包括i,w,e warning:警告 error:错误 assertLogPrinter类:发送输出到系统log, 构造函数 public LogPrinter (int priority, String tag) 参数: pri...
分类:移动开发   时间:2015-03-31 09:07:32    阅读次数:141
Servlet介绍(二)
——————————接上文Servlet介绍(一)——————这里着重来说一下服务器获取请求参数的几种方法,首先是通过getParameter方法获取请求参数的值,第二种通过getParameterNames获取所有请求参数的名称,返回一个Enumeration 类型,然后循环迭代取值,第三种是通过getParameterValues获取同一参数名的值,该方法返回一个String数组,第四种,也是最...
分类:其他好文   时间:2015-03-31 09:05:56    阅读次数:115
记一次随机字符串生成算法的随机概率与性能的提升
一、前言背景前几天我部门一个和银行对接的项目中出现了业务Id重复的现象,导致了很多之前不可预见的bug。由于该项目有资金流动,涉及到金钱交易,故不敢有任何闪失。于是leader把同事写的Handler.ashx.cs发给我瞧了瞧,其中的一处流水号生成代码引起了我的注意。代码如下:string[] s...
分类:编程语言   时间:2015-03-31 08:58:06    阅读次数:290
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!