摘要: package test;import java.util.Random;public class SSQ {public static void main(String[] args) { int[] cai = new int[7]; Random r... 阅读全文
posted @ 2015-12-08 08:43 机智的实习生 阅读(188) 评论(0) 推荐(0) 编辑
摘要: package test;public class WORK { public static void main(String[] args) { // 冒泡排序 int[] array = { 49, 38, 65, 97, 76, 13, 27, 19 }; ... 阅读全文
posted @ 2015-12-05 16:51 机智的实习生 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 在Java中我们可以使用java.util.Random类来产生一个随机数发生器。它有两种形式的构造函数,分别是Random()和Random(long seed)。Random()使用当前时间即System.currentTimeMillis()作为发生器的种子,Random(long seed)... 阅读全文
posted @ 2015-12-05 14:02 机智的实习生 阅读(223) 评论(0) 推荐(0) 编辑
摘要: package tz;public class Tz { public static void main(String[] args) { int tz=70; int sg=180; int bz=sg-100; boolean sex... 阅读全文
posted @ 2015-12-04 09:13 机智的实习生 阅读(98) 评论(0) 推荐(0) 编辑
摘要: int w = 2; String s = "10"; switch (s)// { case "0": System.out.println("今天是星期日"); break;// 中断 ... 阅读全文
posted @ 2015-12-03 23:30 机智的实习生 阅读(353) 评论(0) 推荐(0) 编辑
摘要: boolean luoji = true & true; System.out.println(" true && true ="+ luoji); luoji = true & false ; System.out.println(" true &&... 阅读全文
posted @ 2015-12-03 08:32 机智的实习生 阅读(106) 评论(0) 推荐(0) 编辑
摘要: byte b =127;//范围-128至127 short s = 2; int j = 123; long l = 1234L;//后面标记L确定为long型 int c = ... 阅读全文
posted @ 2015-12-01 08:55 机智的实习生 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-11-30 16:54 机智的实习生 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 指针 在计算机科学中,指针(Pointer)是编程语言中的一个对象,利用地址,它的值直接指向(points to)存在电脑存储器中另一个地方的值。由于通过地址能找到所需的变量单元,可以说,地址指向该变量单元。因此,将地址形象化的称为“指针”。意思是通过它能找到以它为地址的内存单元。[1]在高级语... 阅读全文
posted @ 2015-11-28 11:32 机智的实习生 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 面向对象的分析根据抽象关键的问题域来分解系统。面向对象的设计是一种提供符号设计系统的面向对象的实现过程,它用非常接近实际领域术语的方法把系统构造成“现实世界”的对象。面向对象程序设计可以看作一种在程序中包含各种独立而又互相调用的对象的思想,这与传统的思想刚好相反:传统的程序设计主张将程序看作一... 阅读全文
posted @ 2015-11-28 11:28 机智的实习生 阅读(132) 评论(0) 推荐(0) 编辑