码迷,mamicode.com
首页 >  
搜索关键字:public    ( 82854个结果
存储过程通用DAL类查询分页数据返回datatable
DAL #region 查询分页数据 public DataTable SelectPageing(string feids, int page, int pagesize, int paixu, string where, string paixufeids, string tabl...
分类:其他好文   时间:2015-10-19 17:23:10    阅读次数:131
java 的 数字、汉字 和 字母 的所占字节长度 与 字符长度 (邮件限制50个汉字)
public static void main(String[] args) {String a = "餿餿餿餿餿z";byte[] bytes = a.getBytes();System.out.println("\"223\".getBytes().length>50 = " + bytes.l...
分类:编程语言   时间:2015-10-19 17:21:24    阅读次数:262
静态变量查询类创建了多少个对象
源代码:package demo;import java.util.*;class How { public static int a=0; public How(){ a++; } public int getValue(){ return a; }}public class HowMany{.....
分类:其他好文   时间:2015-10-19 17:17:17    阅读次数:144
php后台模板html拼接写法
1 public function get_kefu_reply_list(){ 2 $wid=$this->_post('order_id'); 3 if(!$wid){ 4 echo('工单信息获取失败!'); 5 ...
分类:Web程序   时间:2015-10-19 17:12:26    阅读次数:184
Aspx页面模拟WebService功能
在后台引入using System.Web.Services 命名空间然后在编写web服务方法:1 [WebMethod]2 public static string GetData(string time, string targetColumn)3 {4 ...
分类:Web程序   时间:2015-10-19 17:09:15    阅读次数:162
Java 中多条件排序
Collections.sort(ghEntityList, new Comparator() { @Override public int compare(GongHuiEntity o1, GongHuiEntity o2) { if (o1 ==...
分类:编程语言   时间:2015-10-19 17:06:46    阅读次数:146
asp.net javascript客户端调用服务器端方法
如何用js调用服务器端方法。首先服务器端方法的格式如下 [System.Web.Services.WebMethod] public static void serverMethod(string url) { WebClient wc = new WebClient(); StringBuilde...
分类:编程语言   时间:2015-10-19 17:02:28    阅读次数:149
java-测试synchronized使用xxx.class和this使用的区别
synchronized测试1写两个线程调用同一个方法,在其中分别做一个class和this的调用,看结果1.xx.classpublic class Test{ public static void main(String[] args) { System.out.printl...
分类:编程语言   时间:2015-10-19 15:40:25    阅读次数:197
spring date jpa 查询列最大值
@Resource private EntityManagerFactory entityManagerFactory; public Date getMaxCreatetime(){ EntityManager em = entityManagerFactory.createEntityMana....
分类:编程语言   时间:2015-10-19 12:45:15    阅读次数:6726
找出字符串中最长不重复子串
public class AE { public static void main(String[] args) { //String s = "abacdecfgab"; String s = "abacdbe"; System.out.printl...
分类:其他好文   时间:2015-10-19 12:43:47    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!