2016年3月31日
摘要: Problem Description Ignatius drinks milk everyday, now he is in the supermarket and he wants to choose a bottle of milk. There are many kinds... 阅读全文
posted @ 2016-03-31 20:01 cnxo 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Problem Description Given a positive integer N, you should output the most right digit of N^N.Input The input contains several test cases. Th... 阅读全文
posted @ 2016-03-31 18:29 cnxo 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1... 阅读全文
posted @ 2016-03-31 13:08 cnxo 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 实现数据进行文件的存储和读写。 本软件也就到此结束了。 没多少可以讲的。 因为这个小软件也就8个类,主要学习的也就是一个分层思想的简单应用。package cn.hncu.addr.dao;import java.io.FileInputStream;import java.io.... 阅读全文
posted @ 2016-03-31 00:30 cnxo 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 这个。。。没多少好解释的。。。 表现层的增删改查的具体实现类。package cn.hncu.addr.business;import javax.swing.JOptionPane;import cn.hncu.addr.dao.AddrDaoFile;import sun.se... 阅读全文
posted @ 2016-03-31 00:26 cnxo 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 查找模块: 年龄可进行段查找。 其他的都是模糊匹配。 空格为无用字符,会屏蔽的(除年龄)。 (如果在年龄中输入空格,会出现异常,当时没想到这点,要防护这点很容易的,但因为在这个小软件的编写过程,我主要学的是java项目开发的分层思想,软件可能bug比较多,望见谅。)/* * Que... 阅读全文
posted @ 2016-03-31 00:24 cnxo 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 删除地址的表现层类。 如果没有选中要删除的地址信息,会出现窗口提示: 删除地址界面:(无法修改数据,只能看) /* * DeletePanel.java * */package cn.hncu.addr.ui;import javax.swing.JFrame;import jav... 阅读全文
posted @ 2016-03-31 00:17 cnxo 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 修改地址信息的一个表现层类。 必须选中地址,才能修改,否则会弹出窗口提示, 修改地址界面: /* * UpdatePanel.java * */package cn.hncu.addr.ui;import javax.swing.JFrame;import javax.swing.... 阅读全文
posted @ 2016-03-31 00:13 cnxo 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 添加地址信息界面。年龄和地址必须是数字,否则会弹出窗口提示。 地址信息不能为空。 /* * AddPanel.java * * Created on __DATE__, __TIME__ */package cn.hncu.addr.ui;import javax.swing.JF... 阅读全文
posted @ 2016-03-31 00:07 cnxo 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 这个是表现层的主界面。 /* * ListPanel.java * */package cn.hncu.addr.ui;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JList;impo... 阅读全文
posted @ 2016-03-31 00:01 cnxo 阅读(349) 评论(0) 推荐(0) 编辑