摘要: 软件编程总原则:低耦合,高内聚一、设计模式中类的关系1.1.依赖:Java中表现为:类A使用类B,其中类B是作为类A的方法参数,方法中的局部变量或者静态方法调用。[code]public class People{ public void read(Book book){ System.out.pr... 阅读全文
posted @ 2015-05-13 19:38 XavierJZhang 阅读(147) 评论(0) 推荐(0) 编辑
摘要: PS: 开始ACM的受虐!site:http://acm.acmcoder.com/listproblem.php【如果觉得我的笔记写的好,您可以小额赞助我:支付宝 15202166392】一、1000import java.util.Scanner;public class Main { publ... 阅读全文
posted @ 2015-05-13 19:37 XavierJZhang 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Java源文件地址:百度云:http://pan.baidu.com/s/1qW6ygzU提取码:dndr交换函数:public static void swap(int array[], int x, int y) { int t = array[x]; array[x] = array[y]... 阅读全文
posted @ 2015-05-13 19:36 XavierJZhang 阅读(124) 评论(0) 推荐(0) 编辑