上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: public class StringBuilder_and_StringBuffer { private static long SystemTime(){ return System.currentTimeMillis(); } private static void TString(){ long begin=SystemTime(); Str... 阅读全文
posted @ 2017-04-02 19:00 *小嘻嘻* 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { // TODO Auto-generated method stub /* * 使用for循环遍历数组 * int arr[]=new int[]{}; int arr1[][]={{1,2,3,4,5,6,7,8,9},{2,3,6,8,7},{8,5,9,6,7}}; for (int i... 阅读全文
posted @ 2017-04-02 10:14 *小嘻嘻* 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-04-01 15:50 *小嘻嘻* 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 注重代码编写规范: 1)都得遵循标识号的规范 2)不能以关键字,数字开头。也不要以拼音起名,最好用英文单词,单词组合来起名。 3)采用驼峰表示法,使用英文单词组合,单词首字母要大些,起到分割作用。 1.包名: package 域名倒写.模块名.组建; 全部使用小写字母 2.类名:使用名词,首字母大写 阅读全文
posted @ 2017-03-31 23:45 *小嘻嘻* 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 一、基本选择器 1. id选择器(指定id元素) 将id="one"的元素背景色设置为黑色。(id选择器返单个元素) $(document).ready(function () { $('#one').css('background', '#000'); }); 2. class选择器(遍历css类 阅读全文
posted @ 2017-03-30 09:57 *小嘻嘻* 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 一、前言 二、内部类定义内部类定义非常简单,就是把一个类的定义放在另外一个外围类定义的里面。如下面代码所示:class OutterClass { class InnerClass { }}你可能会想,内部类和组合有什么区别?就这么简单把内部类的定义放在外部类里面,能惹出多少事儿来?诶,你还别说,还 阅读全文
posted @ 2017-03-28 22:53 *小嘻嘻* 阅读(135) 评论(0) 推荐(0) 编辑
摘要: package interfaceDemo; interface Equipment_specifications{ void DoWork(); } class MBorad{//主板 private static int index;//定义一个变量 private static Equipment_specifications[] es=new Equipment_specifi... 阅读全文
posted @ 2017-03-28 22:22 *小嘻嘻* 阅读(429) 评论(0) 推荐(0) 编辑
摘要: package interfaceDemo; interface Greepy{//创建一个接口,趴行动物 void run();//不能有方法体,跑的行为 } interface Aquatic{//水生动物 void swim();//游泳的行为public static //String name="www";//同等于:public static final Stri... 阅读全文
posted @ 2017-03-28 20:31 *小嘻嘻* 阅读(303) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/maowang1991/archive/2013/04/15/3023236.html 阅读全文
posted @ 2017-03-28 15:07 *小嘻嘻* 阅读(544) 评论(0) 推荐(0) 编辑
摘要: int 是基本数据类型Integer是其包装类,注意是一个类。为什么要提供包装类呢???一是为了在各种类型间转化,通过各种方法的调用。否则 你无法直接通过变量转化。比如,现在int要转为Stringint a=0;String result=Integer.toString(a);在java中包装类,比较多的用途是用在于各种数据类型的转化中。我写几个demo//通过包装类来实现转化的 int n... 阅读全文
posted @ 2017-03-28 11:25 *小嘻嘻* 阅读(266) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页