摘要: 1 package com.liu.Link; 2 3 public class LinkList1 { 4 private Link first; 5 public LinkList1() 6 { 7 first = null; 8 ... 阅读全文
posted @ 2014-04-18 09:31 一叶落香 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 1 package com.liu.link; 2 3 public class LinkListCopy { 4 //first为私有,不能动,当外部想查看内部时,为了安全需要,需要重新指定指针指向first 5 private Link_1 first; 6 publ... 阅读全文
posted @ 2014-04-17 16:15 一叶落香 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 1 package com.liu.queue; 2 3 public class QueueApp { 4 public static void main(String args[]) 5 { 6 Queue theQueue = new Queue(5); 7... 阅读全文
posted @ 2014-04-17 14:07 一叶落香 阅读(399) 评论(0) 推荐(0) 编辑
摘要: public class Select_Sort { public static void main(String[] args) { int[] score = new int[5]; Scanner scan = new Scanner(System.in... 阅读全文
posted @ 2014-04-14 15:51 一叶落香 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 1 package com.liu.Stack; 2 3 import java.io.BufferedReader; 4 import java.io.IOException; 5 import java.io.InputStreamReader; 6 7 import org... 阅读全文
posted @ 2014-04-14 15:50 一叶落香 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 1 public class Stack { 2 3 public static void main(String args[]) 4 { 5 ArrayTest1 arr = new ArrayTest1(10); 6 7 8 arr.push(8); 9 arr.push(7);10 arr.push(6);11 arr.push(5);12 13 while(!arr.isEmpty())14 {1... 阅读全文
posted @ 2014-04-11 10:43 一叶落香 阅读(883) 评论(0) 推荐(0) 编辑
摘要: 1 package com.liu.Sort; 2 3 public class objectSort { 4 public static void main(String[] args) 5 { 6 int maxsize = 100; 7 ArrayInOb arr; 8 arr = new ArrayInOb(maxsize); 9 10 arr.insert("evans", "hello", 12); 11 arr.insert("liu", "ya... 阅读全文
posted @ 2014-04-10 16:44 一叶落香 阅读(402) 评论(0) 推荐(0) 编辑
摘要: package com.liu.Sort;public class InsertSort { private static ArrayInsert arr; private static int number = 50; public static void main(String args[]) { arr = new ArrayInsert(number); arr.insert(45); arr.insert(0); arr.insert(-543); arr.insert(54... 阅读全文
posted @ 2014-04-10 16:07 一叶落香 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 第一步,我们首先需要将图片放在res目录下的drawable-mdpi文件夹下面,然后我们在layout中设置图片的整体布局。第二步,在MainActivity.java下编辑如下代码: 1 public class MainActivity extends Activity 2 { 3 //定义一个访问图片的数组 4 int[] images = new int[]{ 5 R.drawable.java, 6 R.drawable.ee, 7 R.drawable.classic, 8 R.drawable.aj... 阅读全文
posted @ 2013-10-18 15:46 一叶落香 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 因为最近要考研,很久才更新第二步这一次主要说明一下页面的事件处理程序,基本上分为8个步骤: 阅读全文
posted @ 2013-09-09 19:55 一叶落香 阅读(163) 评论(0) 推荐(0) 编辑