Strict Standards: Non-static method ECMall::startup() should not be called statically in /htdocs/ecmall/index.php on line 22 Deprecated: Assigning the...
分类:
Web程序 时间:
2015-12-06 14:31:56
阅读次数:
251
1. 创建bean 必须要有id/_id属性(作为表的主键)2. 使用DbUtils 并建数据库1 //2 //public static DbUtils create(Context context, String dbName)3 //4 dbUtils = DbUtils.create(Mai...
分类:
数据库 时间:
2015-12-06 12:48:21
阅读次数:
190
public static int gcd(int a, int b) { int n1 = Math.abs(a); int n2 = Math.abs(b); int remainder = n1 % n2; while (remainder > 0) { n1 = n2; n2 ...
分类:
其他好文 时间:
2015-12-06 11:13:46
阅读次数:
116
1 //饿汉单例设计模式 ----> 保证Single在在内存中只有一个对象。 2 class Single{ 3 4 //声明本类的引用类型变量,并且使用该变量指向本类对象 5 private static Single s = new Single(); 6 7 ...
分类:
其他好文 时间:
2015-12-06 09:58:59
阅读次数:
130
hi 又是开森的周六了。积攒的两周的衣服,终于是差不多洗完了。大下午的才来学点东西~~1、PHP面向对象(三)四、OOP的高级实践4.3 Static-静态成员name."'s eating ".$food.""; }}class Animal{ public $kind; public $g...
分类:
Web程序 时间:
2015-12-06 00:13:27
阅读次数:
234
题目描述在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数public class solution1 { public static boolean Find(int[][] a...
分类:
编程语言 时间:
2015-12-05 21:02:50
阅读次数:
194
1 class Program 2 { 3 static void Main(string[] args) 4 { 5 //用户输入年,月,日,计算该日是该年的第几天?需要考虑2月份的问题 6 int year...
分类:
其他好文 时间:
2015-12-05 21:02:00
阅读次数:
187
题目描述 请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。public class solution2 { public static String replaceSpace...
分类:
其他好文 时间:
2015-12-05 20:52:24
阅读次数:
197
Android中获取状态栏高度的两种方法: public static int getStatusHeight(Context context) { int statusHeight = 0; try { Class c...
分类:
其他好文 时间:
2015-12-05 19:20:23
阅读次数:
159
正则表达式 写一个功能实现QQ号码的校验。import java.util.Scanner;public class RegexDemo01 { public static void main(String[] args) { Scanner sc = new Scanner(...
分类:
编程语言 时间:
2015-12-05 19:19:16
阅读次数:
206