关于学生信息管理系统的小问题

as821621435 2018-06-07 12:07:21
我写了一个student类想用链表存 怎么才能存多个数据
...全文
1195 20 打赏 收藏 转发到动态 举报
写回复
用AI写文章
20 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhuailhw123 2018-06-20
  • 打赏
  • 举报
回复
定义个arraylist的student泛型
Chenmoooooooooo 2018-06-16
  • 打赏
  • 举报
回复
引用 14 楼 abolom 的回复:
楼上差不多都对你说了,定义个arraylist的student泛型。你可以从网上找个简单的例子看看,应该能看懂,后面你应该还要连数据库吧,也可以顺便把jdbc的内容看看
链表难道不是LinkedList吗
as821621435 2018-06-09
  • 打赏
  • 举报
回复
救救孩子吧
as821621435 2018-06-09
  • 打赏
  • 举报
回复
引用 14楼abolom 的回复:
楼上差不多都对你说了,定义个arraylist的student泛型。你可以从网上找个简单的例子看看,应该能看懂,后面你应该还要连数据库吧,也可以顺便把jdbc的内容看看
没学数据库 要用链表
abolom 2018-06-08
  • 打赏
  • 举报
回复
楼上差不多都对你说了,定义个arraylist的student泛型。你可以从网上找个简单的例子看看,应该能看懂,后面你应该还要连数据库吧,也可以顺便把jdbc的内容看看
as821621435 2018-06-07
  • 打赏
  • 举报
回复
12345678912345
as821621435 2018-06-07
  • 打赏
  • 举报
回复
救救孩子吧……
as821621435 2018-06-07
  • 打赏
  • 举报
回复
引用 11楼GoldenLeeK 的回复:
你都说出来用链表了。。。。就用链表ArrayList<Student> 这个来实现就OK了,具体的操作它的一些方法直接百度看看就会使用了,也有实例。
大佬方便加个q吗
stacksoverflow 2018-06-07
  • 打赏
  • 举报
回复
引用 10 楼 as821621435 的回复:
[quote=引用 9楼stacksoverflow 的回复:][quote=引用 8 楼 as821621435 的回复:] [quote=引用 7楼stacksoverflow 的回复:][quote=引用 6 楼 as821621435 的回复:] [quote=引用 4楼stacksoverflow 的回复:] Student student = new Student(); List<Student> studentList = new LinkedList<Student>(); studentList.add(student);
方便加个微信或者q吗[/quote] 不方便[/quote]那私信吧 你这个我没看懂[/quote] // 创建一个学生类 Student student = new Student(); // 创建一个链表,用来存储学生类 List<Student> studentList = new LinkedList<Student>(); // 把创建好的学生类加入到链表中 studentList.add(student);[/quote]才学链表 你方便给出list具体实现吗[/quote] 链表有单向链表,双向链表,循环链表等,根据不同的需求选择不同的实现,自己读一下算法导论。
GoldenLeeK 2018-06-07
  • 打赏
  • 举报
回复
你都说出来用链表了。。。。就用链表ArrayList<Student> 这个来实现就OK了,具体的操作它的一些方法直接百度看看就会使用了,也有实例。
as821621435 2018-06-07
  • 打赏
  • 举报
回复
引用 9楼stacksoverflow 的回复:
[quote=引用 8 楼 as821621435 的回复:] [quote=引用 7楼stacksoverflow 的回复:][quote=引用 6 楼 as821621435 的回复:] [quote=引用 4楼stacksoverflow 的回复:] Student student = new Student(); List<Student> studentList = new LinkedList<Student>(); studentList.add(student);
方便加个微信或者q吗[/quote] 不方便[/quote]那私信吧 你这个我没看懂[/quote] // 创建一个学生类 Student student = new Student(); // 创建一个链表,用来存储学生类 List<Student> studentList = new LinkedList<Student>(); // 把创建好的学生类加入到链表中 studentList.add(student);[/quote]才学链表 你方便给出list具体实现吗
stacksoverflow 2018-06-07
  • 打赏
  • 举报
回复
引用 8 楼 as821621435 的回复:
[quote=引用 7楼stacksoverflow 的回复:][quote=引用 6 楼 as821621435 的回复:] [quote=引用 4楼stacksoverflow 的回复:] Student student = new Student(); List<Student> studentList = new LinkedList<Student>(); studentList.add(student);
方便加个微信或者q吗[/quote] 不方便[/quote]那私信吧 你这个我没看懂[/quote] // 创建一个学生类 Student student = new Student(); // 创建一个链表,用来存储学生类 List<Student> studentList = new LinkedList<Student>(); // 把创建好的学生类加入到链表中 studentList.add(student);
as821621435 2018-06-07
  • 打赏
  • 举报
回复
引用 7楼stacksoverflow 的回复:
[quote=引用 6 楼 as821621435 的回复:] [quote=引用 4楼stacksoverflow 的回复:] Student student = new Student(); List<Student> studentList = new LinkedList<Student>(); studentList.add(student);
方便加个微信或者q吗[/quote] 不方便[/quote]那私信吧 你这个我没看懂
as821621435 2018-06-07
  • 打赏
  • 举报
回复
引用 4楼stacksoverflow 的回复:
Student student = new Student(); List<Student> studentList = new LinkedList<Student>(); studentList.add(student);
方便加个微信或者q吗
stacksoverflow 2018-06-07
  • 打赏
  • 举报
回复
Student student = new Student(); List<Student> studentList = new LinkedList<Student>(); studentList.add(student);
stacksoverflow 2018-06-07
  • 打赏
  • 举报
回复
引用 6 楼 as821621435 的回复:
[quote=引用 4楼stacksoverflow 的回复:] Student student = new Student(); List<Student> studentList = new LinkedList<Student>(); studentList.add(student);
方便加个微信或者q吗[/quote] 不方便
stacksoverflow 2018-06-07
  • 打赏
  • 举报
回复
引用 3 楼 QWERT4745 的回复:
ArrayList
ArrayList是链表吗???
QWERT4745 2018-06-07
  • 打赏
  • 举报
回复
ArrayList

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧