A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 滔哥 黑马帝   /  2013-3-8 19:43  /  6461 人查看  /  17 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

主函数
  1. package com.linguofeng.main;

  2. import java.io.BufferedReader;
  3. import java.io.File;
  4. import java.io.IOException;
  5. import java.io.InputStreamReader;
  6. import java.util.Iterator;
  7. import java.util.TreeMap;

  8. import com.linguofeng.dao.StudentDao;
  9. import com.linguofeng.dao.impl.StudentDaoImpl;
  10. import com.linguofeng.model.Student;

  11. public class StudentMain {
  12. static StudentDao dao;
  13. static BufferedReader br;
  14. public static void main(String[] args) {
  15. /** 启动时判断数据文件是否存在,如不存在则新建. */
  16. File file = new File("student.dat");
  17. if (!file.exists()) {
  18. try {
  19. file.createNewFile();
  20. } catch (IOException e) {
  21. e.printStackTrace();
  22. }
  23. }

  24. dao = new StudentDaoImpl();

  25. /** 获得控制台输入流 */
  26. br = new BufferedReader(new InputStreamReader(System.in));

  27. /** 进行死循环 */
  28. while (true) {
  29. System.out.println(getLine());
  30. System.out.println("=[0]主菜单\t\t\t\t\t\t=");
  31. System.out.println("=[1]查找学生\t\t\t\t\t\t=");
  32. System.out.println("=[2]增加学生\t\t\t\t\t\t=");
  33. System.out.println("=[3]删除一个学生\t\t\t\t\t=");
  34. System.out.println("=[4]删除所有学生\t\t\t\t\t=");
  35. System.out.println("=[5]学生列表\t\t\t\t\t\t=");
  36. System.out.println("=[6]更新学生\t\t\t\t\t\t=");
  37. System.out.println("=[x]退出\t\t\t\t\t\t=");
  38. System.out.println(getLine());
  39. System.out.print("请选择操作:");

  40. /** 获得控制台输入的内容 */
  41. String input = getInput();
  42. if (input.equals("")) {
  43. input = "x";
  44. }
  45. switch (input.charAt(0)) {
  46. case '2' :
  47. addStu();
  48. break;
  49. case 'x' :
  50. System.out.println("退出成功,欢迎再次使用!");
  51. System.exit(0);
  52. break;
  53. case '5' :
  54. findAll();
  55. break;
  56. case '4' :
  57. delAll();
  58. break;
  59. case '3' :
  60. delByNum();
  61. break;
  62. case '1' :
  63. findByNum();
  64. break;
  65. case '6' :
  66. updateByNum();
  67. break;
  68. default :
  69. System.out.println("不支持的系统指令,请重新输入!");
  70. break;
  71. }
  72. }
  73. }

  74. /**
  75. * 根据学生学号查询学生对象信息
  76. */
  77. public static void findByNum() {
  78. System.out.print("请输入要查询的学生学号:");
  79. while (true) {
  80. String input = getInput();
  81. if (dao.findByNum(input) != null) {
  82. System.out.println(dao.findByNum(input));
  83. return;
  84. } else if (input.equals("")) {
  85. return;
  86. } else {
  87. System.out.print("查询失败,不存在该学生,请重新输入要删除的学生学号:");
  88. }
  89. }
  90. }

  91. /**
  92. * 根据学生学号删除学生对象
  93. */
  94. public static void delByNum() {
  95. System.out.println(getLine());
  96. findAll();/** 显示所有学生信息方便进行删除操作 */
  97. System.out.println(getLine());
  98. System.out.println("如需取消留空直接按回车.");
  99. System.out.print("请输入要删除的学生学号:");
  100. while (true) {
  101. String input = getInput();
  102. if (dao.delByNum(input)) {
  103. System.out.println("删除成功!");
  104. findAll();
  105. return;
  106. } else if (input.equals("")) {
  107. return;
  108. } else {
  109. System.out.print("删除失败,不存在该学生,请重新输入要删除的学生学号:");
  110. }
  111. }
  112. }
  113. /**
  114. * 学生列表
  115. */
  116. public static void findAll() {
  117. TreeMap<String, Student> stuMap = dao.findAll();
  118. Iterator<Student> iterator = stuMap.values().iterator();
  119. if (!iterator.hasNext()) {
  120. System.out.println("数据库为空");
  121. }
  122. while (iterator.hasNext()) {
  123. System.out.println(iterator.next());
  124. }
  125. }

  126. /**
  127. * 删除所有学生对象
  128. */
  129. public static void delAll() {
  130. while (true) {
  131. System.out.print("是否要删除所有学生信息,确定请输入YES,否请输入NO:");
  132. String input = getInput();
  133. if (input.equals("YES") || input.equals("yes")) {
  134. dao.delAll();
  135. System.out.println("清空成功");
  136. return;
  137. } else if (input.equals("NO") || input.equals("no")) {
  138. return;
  139. } else {
  140. System.out.println("输入有误,请重新输入!");
  141. }
  142. }
  143. }

  144. /**
  145. * 添加学生
  146. */
  147. public static void addStu() {
  148. while (true) {
  149. System.out.print("请输入要添加学生的个数:");
  150. String ch = null;
  151. try {
  152. ch = br.readLine();
  153. } catch (IOException e) {
  154. e.printStackTrace();
  155. }
  156. if (ch.equals("")) {
  157. System.out.println("输入有误,请重新输入!");
  158. } else {
  159. int size = Integer.parseInt(ch);
  160. TreeMap<String, Student> stuMap = new TreeMap<String, Student>();
  161. for (int i = 0; i < size; i++) {
  162. Student student = new Student();
  163. try {
  164. System.out.print("请输入第 " + (i + 1) + " 个学生的姓名:");
  165. student.setName(br.readLine());
  166. System.out.print("请输入第 " + (i + 1) + " 个学生的学号:");
  167. student.setNum(br.readLine());
  168. System.out.print("请输入第 " + (i + 1)
  169. + " 个学生的性别(男输:1;女输:0):");
  170. student.setSex(Integer.parseInt(br.readLine()));
  171. } catch (IOException e) {
  172. e.printStackTrace();
  173. }
  174. stuMap.put(student.getNum(), student);
  175. }
  176. dao.addStu(stuMap);
  177. findAll();
  178. return;
  179. }
  180. }
  181. }

  182. public static void updateByNum() {
  183. findAll();
  184. System.out.print("请输入要修改的学生学号:");
  185. while (true) {
  186. String input = getInput();
  187. String num = input;
  188. Student student = dao.findByNum(num);
  189. if (student != null) {
  190. System.out.println(student);
  191. System.out.println("如不修改直接留空按回车!");
  192. System.out.print("请输入学生的新姓名:");
  193. input = getInput();
  194. if (!input.equals(""))
  195. student.setName(input);
  196. System.out.print("请输入学生的新学号:");
  197. input = getInput();
  198. if (!input.equals(""))
  199. student.setNum(input);
  200. System.out.print("请输入学生的新版性别(男输:1;女输:0):");
  201. input = getInput();
  202. if (!input.equals(""))
  203. student.setSex(Integer.parseInt(input));
  204. dao.updateByNum(num, student);
  205. System.out.println("更新成功,更新后的数据:");
  206. System.out.println(dao.findByNum(student.getNum()));
  207. return;
  208. } else if (input.equals("")) {
  209. return;
  210. } else {
  211. System.out.print("查询失败,不存在该学生,请重新输入要修改的学生学号:");
  212. }
  213. }
  214. }

  215. public static void addTest() {
  216. TreeMap<String, Student> stuMap = new TreeMap<String, Student>();
  217. for (int i = 0; i < 10000; i++) {
  218. Student student = new Student(i, "A" + i, "NUM" + i, 0);
  219. stuMap.put(student.getNum(), student);
  220. }
  221. dao.addStu(stuMap);
  222. return;
  223. }

  224. /**
  225. * 获得===========分割符
  226. *
  227. * @return
  228. */
  229. public static String getLine() {
  230. return "=========================================================";
  231. }

  232. /**
  233. * 获得控制台输入
  234. *
  235. * @return
  236. */
  237. public static String getInput() {
  238. String ch = "";
  239. try {
  240. ch = br.readLine();
  241. } catch (IOException e) {
  242. e.printStackTrace();
  243. }
  244. return ch;
  245. }
  246. }
复制代码
学生类
  1. package com.linguofeng.model;

  2. import java.io.Serializable;

  3. /**
  4. * 学生类
  5. *
  6. * @author Fst
  7. * @since 2013-3 {@link <A href="http://www.itheima.com">http://www.itheima.com</A>}
  8. *
  9. */
  10. public class Student implements Serializable {
  11. private static final long serialVersionUID = 1L;

  12. private int id;// 学生编号
  13. private String name;// 学生姓名
  14. private String num;// 学生学号
  15. private int sex;// 学生性别 1为男 0为女

  16. public Student() {
  17. }

  18. public Student(int id, String name, String num, int sex) {
  19. this.id = id;
  20. this.name = name;
  21. this.num = num;
  22. this.sex = sex;
  23. }

  24. public int getId() {
  25. return id;
  26. }

  27. public void setId(int id) {
  28. this.id = id;
  29. }

  30. public String getName() {
  31. return name;
  32. }

  33. public void setName(String name) {
  34. this.name = name;
  35. }

  36. public String getNum() {
  37. return num;
  38. }

  39. public void setNum(String num) {
  40. this.num = num;
  41. }

  42. public int getSex() {
  43. return sex;
  44. }

  45. public void setSex(int sex) {
  46. this.sex = sex;
  47. }

  48. @Override
  49. public String toString() {
  50. return "Student:@id:" + this.id + "\t@name:" + this.name + "\t@num:"
  51. + this.num + "\t@sex:" + ((this.sex == 0) ? "女" : "男");
  52. }
  53. }
复制代码
学生对象操作接口类
  1. <PRE style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">package com.linguofeng.main;

  2. import java.io.BufferedReader;
  3. import java.io.File;
  4. import java.io.IOException;
  5. import java.io.InputStreamReader;
  6. import java.util.Iterator;
  7. import java.util.TreeMap;

  8. import com.linguofeng.dao.StudentDao;
  9. import com.linguofeng.dao.impl.StudentDaoImpl;
  10. import com.linguofeng.model.Student;

  11. public class StudentMain {
  12.         static StudentDao dao;
  13.         static BufferedReader br;
  14.         public static void main(String[] args) {
  15.                 /** 启动时判断数据文件是否存在,如不存在则新建. */
  16.                 File file = new File("student.dat");
  17.                 if (!file.exists()) {
  18.                         try {
  19.                                 file.createNewFile();
  20.                         } catch (IOException e) {
  21.                                 e.printStackTrace();
  22.                         }
  23.                 }

  24.                 dao = new StudentDaoImpl();

  25.                 /** 获得控制台输入流 */
  26.                 br = new BufferedReader(new InputStreamReader(System.in));

  27.                 /** 进行死循环 */
  28.                 while (true) {
  29.                         System.out.println(getLine());
  30.                         System.out.println("=[0]主菜单\t\t\t\t\t\t=");
  31.                         System.out.println("=[1]查找学生\t\t\t\t\t\t=");
  32.                         System.out.println("=[2]增加学生\t\t\t\t\t\t=");
  33.                         System.out.println("=[3]删除一个学生\t\t\t\t\t=");
  34.                         System.out.println("=[4]删除所有学生\t\t\t\t\t=");
  35.                         System.out.println("=[5]学生列表\t\t\t\t\t\t=");
  36.                         System.out.println("=[6]更新学生\t\t\t\t\t\t=");
  37.                         System.out.println("=[x]退出\t\t\t\t\t\t=");
  38.                         System.out.println(getLine());
  39.                         System.out.print("请选择操作:");

  40.                         /** 获得控制台输入的内容 */
  41.                         String input = getInput();
  42.                         if (input.equals("")) {
  43.                                 input = "x";
  44.                         }
  45.                         switch (input.charAt(0)) {
  46.                                 case '2' :
  47.                                         addStu();
  48.                                         break;
  49.                                 case 'x' :
  50.                                         System.out.println("退出成功,欢迎再次使用!");
  51.                                         System.exit(0);
  52.                                         break;
  53.                                 case '5' :
  54.                                         findAll();
  55.                                         break;
  56.                                 case '4' :
  57.                                         delAll();
  58.                                         break;
  59.                                 case '3' :
  60.                                         delByNum();
  61.                                         break;
  62.                                 case '1' :
  63.                                         findByNum();
  64.                                         break;
  65.                                 case '6' :
  66.                                         updateByNum();
  67.                                         break;
  68.                                 default :
  69.                                         System.out.println("不支持的系统指令,请重新输入!");
  70.                                         break;
  71.                         }
  72.                 }
  73.         }

  74.         /**
  75.          * 根据学生学号查询学生对象信息
  76.          */
  77.         public static void findByNum() {
  78.                 System.out.print("请输入要查询的学生学号:");
  79.                 while (true) {
  80.                         String input = getInput();
  81.                         if (dao.findByNum(input) != null) {
  82.                                 System.out.println(dao.findByNum(input));
  83.                                 return;
  84.                         } else if (input.equals("")) {
  85.                                 return;
  86.                         } else {
  87.                                 System.out.print("查询失败,不存在该学生,请重新输入要删除的学生学号:");
  88.                         }
  89.                 }
  90.         }

  91.         /**
  92.          * 根据学生学号删除学生对象
  93.          */
  94.         public static void delByNum() {
  95.                 System.out.println(getLine());
  96.                 findAll();/** 显示所有学生信息方便进行删除操作 */
  97.                 System.out.println(getLine());
  98.                 System.out.println("如需取消留空直接按回车.");
  99.                 System.out.print("请输入要删除的学生学号:");
  100.                 while (true) {
  101.                         String input = getInput();
  102.                         if (dao.delByNum(input)) {
  103.                                 System.out.println("删除成功!");
  104.                                 findAll();
  105.                                 return;
  106.                         } else if (input.equals("")) {
  107.                                 return;
  108.                         } else {
  109.                                 System.out.print("删除失败,不存在该学生,请重新输入要删除的学生学号:");
  110.                         }
  111.                 }
  112.         }
  113.         /**
  114.          * 学生列表
  115.          */
  116.         public static void findAll() {
  117.                 TreeMap<String, Student> stuMap = dao.findAll();
  118.                 Iterator<Student> iterator = stuMap.values().iterator();
  119.                 if (!iterator.hasNext()) {
  120.                         System.out.println("数据库为空");
  121.                 }
  122.                 while (iterator.hasNext()) {
  123.                         System.out.println(iterator.next());
  124.                 }
  125.         }

  126.         /**
  127.          * 删除所有学生对象
  128.          */
  129.         public static void delAll() {
  130.                 while (true) {
  131.                         System.out.print("是否要删除所有学生信息,确定请输入YES,否请输入NO:");
  132.                         String input = getInput();
  133.                         if (input.equals("YES") || input.equals("yes")) {
  134.                                 dao.delAll();
  135.                                 System.out.println("清空成功");
  136.                                 return;
  137.                         } else if (input.equals("NO") || input.equals("no")) {
  138.                                 return;
  139.                         } else {
  140.                                 System.out.println("输入有误,请重新输入!");
  141.                         }
  142.                 }
  143.         }

  144.         /**
  145.          * 添加学生
  146.          */
  147.         public static void addStu() {
  148.                 while (true) {
  149.                         System.out.print("请输入要添加学生的个数:");
  150.                         String ch = null;
  151.                         try {
  152.                                 ch = br.readLine();
  153.                         } catch (IOException e) {
  154.                                 e.printStackTrace();
  155.                         }
  156.                         if (ch.equals("")) {
  157.                                 System.out.println("输入有误,请重新输入!");
  158.                         } else {
  159.                                 int size = Integer.parseInt(ch);
  160.                                 TreeMap<String, Student> stuMap = new TreeMap<String, Student>();
  161.                                 for (int i = 0; i < size; i++) {
  162.                                         Student student = new Student();
  163.                                         try {
  164.                                                 System.out.print("请输入第 " + (i + 1) + " 个学生的姓名:");
  165.                                                 student.setName(br.readLine());
  166.                                                 System.out.print("请输入第 " + (i + 1) + " 个学生的学号:");
  167.                                                 student.setNum(br.readLine());
  168.                                                 System.out.print("请输入第 " + (i + 1)
  169.                                                                 + " 个学生的性别(男输:1;女输:0):");
  170.                                                 student.setSex(Integer.parseInt(br.readLine()));
  171.                                         } catch (IOException e) {
  172.                                                 e.printStackTrace();
  173.                                         }
  174.                                         stuMap.put(student.getNum(), student);
  175.                                 }
  176.                                 dao.addStu(stuMap);
  177.                                 findAll();
  178.                                 return;
  179.                         }
  180.                 }
  181.         }

  182.         public static void updateByNum() {
  183.                 findAll();
  184.                 System.out.print("请输入要修改的学生学号:");
  185.                 while (true) {
  186.                         String input = getInput();
  187.                         String num = input;
  188.                         Student student = dao.findByNum(num);
  189.                         if (student != null) {
  190.                                 System.out.println(student);
  191.                                 System.out.println("如不修改直接留空按回车!");
  192.                                 System.out.print("请输入学生的新姓名:");
  193.                                 input = getInput();
  194.                                 if (!input.equals(""))
  195.                                         student.setName(input);
  196.                                 System.out.print("请输入学生的新学号:");
  197.                                 input = getInput();
  198.                                 if (!input.equals(""))
  199.                                         student.setNum(input);
  200.                                 System.out.print("请输入学生的新版性别(男输:1;女输:0):");
  201.                                 input = getInput();
  202.                                 if (!input.equals(""))
  203.                                         student.setSex(Integer.parseInt(input));
  204.                                 dao.updateByNum(num, student);
  205.                                 System.out.println("更新成功,更新后的数据:");
  206.                                 System.out.println(dao.findByNum(student.getNum()));
  207.                                 return;
  208.                         } else if (input.equals("")) {
  209.                                 return;
  210.                         } else {
  211.                                 System.out.print("查询失败,不存在该学生,请重新输入要修改的学生学号:");
  212.                         }
  213.                 }
  214.         }

  215.         public static void addTest() {
  216.                 TreeMap<String, Student> stuMap = new TreeMap<String, Student>();
  217.                 for (int i = 0; i < 10000; i++) {
  218.                         Student student = new Student(i, "A" + i, "NUM" + i, 0);
  219.                         stuMap.put(student.getNum(), student);
  220.                 }
  221.                 dao.addStu(stuMap);
  222.                 return;
  223.         }

  224.         /**
  225.          * 获得===========分割符
  226.          *
  227.          * @return
  228.          */
  229.         public static String getLine() {
  230.                 return "=========================================================";
  231.         }

  232.         /**
  233.          * 获得控制台输入
  234.          *
  235.          * @return
  236.          */
  237.         public static String getInput() {
  238.                 String ch = "";
  239.                 try {
  240.                         ch = br.readLine();
  241.                 } catch (IOException e) {
  242.                         e.printStackTrace();
  243.                 }
  244.                 return ch;
  245.         }
  246. }</PRE>
复制代码

17 个回复

倒序浏览
学生对象操作实现类
  1. package com.linguofeng.dao.impl;

  2. import java.io.FileInputStream;
  3. import java.io.FileNotFoundException;
  4. import java.io.FileOutputStream;
  5. import java.io.IOException;
  6. import java.io.ObjectInputStream;
  7. import java.io.ObjectOutputStream;
  8. import java.util.Iterator;
  9. import java.util.TreeMap;

  10. import com.linguofeng.dao.StudentDao;
  11. import com.linguofeng.model.Student;

  12. /**
  13. * 学生对象操作实现类
  14. *
  15. * @author 林国锋
  16. * @since 2011-9-24 {@link http://www.linguofeng.com}
  17. *
  18. */
  19. public class StudentDaoImpl implements StudentDao {
  20. private static final String file = "student.dat";

  21. /**
  22. * 添加学生
  23. */
  24. @Override
  25. public void addStu(TreeMap<String, Student> stuMap) {
  26. /** 把原来的数据也加入去 */
  27. Iterator<Student> iterator = findAll().values().iterator();
  28. while (iterator.hasNext()) {
  29. Student student = iterator.next();
  30. stuMap.put(student.getNum(), student);
  31. }

  32. FileOutputStream fos = null;
  33. ObjectOutputStream out = null;
  34. try {
  35. fos = new FileOutputStream(file);
  36. out = new ObjectOutputStream(fos);
  37. Iterator<Student> it = stuMap.values().iterator();
  38. while (it.hasNext()) {
  39. out.writeObject(it.next());
  40. }
  41. out.writeObject(null);
  42. out.flush();
  43. } catch (FileNotFoundException e) {
  44. e.printStackTrace();
  45. } catch (IOException e) {
  46. e.printStackTrace();
  47. } finally {
  48. try {
  49. out.close();
  50. } catch (IOException e) {
  51. e.printStackTrace();
  52. }
  53. try {
  54. fos.close();
  55. } catch (IOException e) {
  56. e.printStackTrace();
  57. }
  58. }
  59. }

  60. /**
  61. * 查找所有学生对象
  62. */
  63. @Override
  64. public TreeMap<String, Student> findAll() {
  65. FileInputStream fis = null;
  66. ObjectInputStream in = null;
  67. TreeMap<String, Student> stuMap = null;
  68. try {
  69. fis = new FileInputStream(file);
  70. in = new ObjectInputStream(fis);
  71. Student student = null;
  72. stuMap = new TreeMap<String, Student>();
  73. while ((student = (Student) (in.readObject())) != null) {
  74. stuMap.put(student.getNum(), student);
  75. }
  76. } catch (FileNotFoundException e) {
  77. e.printStackTrace();
  78. } catch (IOException e) {
  79. e.printStackTrace();
  80. } catch (ClassNotFoundException e) {
  81. e.printStackTrace();
  82. }
  83. return stuMap;
  84. }
  85. /**
  86. * 删除所有学生对象
  87. */
  88. @Override
  89. public void delAll() {
  90. FileOutputStream fos = null;
  91. ObjectOutputStream out = null;
  92. try {
  93. fos = new FileOutputStream(file);
  94. out = new ObjectOutputStream(fos);
  95. out.writeObject(null);
  96. out.flush();
  97. } catch (FileNotFoundException e) {
  98. e.printStackTrace();
  99. } catch (IOException e) {
  100. e.printStackTrace();
  101. } finally {
  102. try {
  103. out.close();
  104. } catch (IOException e) {
  105. e.printStackTrace();
  106. }
  107. }
  108. }

  109. /**
  110. * 更新学生对象
  111. */
  112. @Override
  113. public void updateStu(TreeMap<String, Student> stuMap) {
  114. FileOutputStream fos = null;
  115. ObjectOutputStream out = null;
  116. try {
  117. fos = new FileOutputStream(file);
  118. out = new ObjectOutputStream(fos);
  119. Iterator<Student> it = stuMap.values().iterator();
  120. while (it.hasNext()) {
  121. out.writeObject(it.next());
  122. }
  123. out.writeObject(null);
  124. out.flush();
  125. } catch (FileNotFoundException e) {
  126. e.printStackTrace();
  127. } catch (IOException e) {
  128. e.printStackTrace();
  129. } finally {
  130. try {
  131. out.close();
  132. } catch (IOException e) {
  133. e.printStackTrace();
  134. }
  135. try {
  136. fos.close();
  137. } catch (IOException e) {
  138. e.printStackTrace();
  139. }
  140. }
  141. }

  142. @Override
  143. public boolean delByNum(String num) {
  144. boolean flag = false;
  145. TreeMap<String, Student> stuMap = findAll();
  146. if (stuMap.remove(num) != null) {
  147. updateStu(stuMap);
  148. flag = true;
  149. }
  150. return flag;
  151. }

  152. @Override
  153. public Student findByNum(String num) {
  154. return findAll().get(num);
  155. }

  156. @Override
  157. public void updateByNum(String num, Student student) {
  158. TreeMap<String, Student> stuMap = findAll();
  159. stuMap.get(num).setId(student.getId());
  160. stuMap.get(num).setName(student.getName());
  161. stuMap.get(num).setNum(student.getNum());
  162. stuMap.get(num).setSex(student.getSex());
  163. updateStu(stuMap);
  164. }

  165. }
复制代码
回复 使用道具 举报
自己占楼,Mark
回复 使用道具 举报
占楼
回复 使用道具 举报
好长的代码,占楼再看
回复 使用道具 举报
余勇 来自手机 中级黑马 2013-3-8 19:49:18
地板
还可以这样
回复 使用道具 举报
刁炸了                       
回复 使用道具 举报
余勇 发表于 2013-3-8 19:49
还可以这样

;P
回复 使用道具 举报
叼炸了      
回复 使用道具 举报
{:soso_e179:}
回复 使用道具 举报
{:soso_e179:}{:soso_e179:}{:soso_e179:}
回复 使用道具 举报
好长代码。只是看了会发现DAO接口好像没发出来,请涛哥指点在哪个位置。
回复 使用道具 举报
Candy 高级黑马 2013-7-18 14:40:21
13#
好东西啊,学校正在要做这个,嘿嘿。
回复 使用道具 举报

能不能把项目压缩啊?我复制的还有地方不对
回复 使用道具 举报

能不能把项目压缩啊?我复制的还有地方不对
回复 使用道具 举报
不错,赞一个
回复 使用道具 举报
不错,又一种想法,
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马