基于Java web 学生web学生成绩管理系统统 最简单的就行 要求实现数据库的增删改查 要求个源代码和包

基于JAVA的高校学生管理系统的设计与实现_百度文库
赠送免券下载特权
10W篇文档免费专享
部分付费文档8折起
每天抽奖多种福利
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
基于JAVA的高校学生管理系统的设计与实现
网页设计师|
总评分4.3|
用知识赚钱
阅读已结束,下载本文需要
想免费下载本文?
定制HR最喜欢的简历
你可能喜欢基于Java_Web的在线考试系统的设计与实现_百度文库
赠送免券下载特权
10W篇文档免费专享
部分付费文档8折起
每天抽奖多种福利
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
基于Java_Web的在线考试系统的设计与实现
阅读已结束,下载本文需要
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,同时保存到云知识,更方便管理
加入VIP
还剩40页未读,
定制HR最喜欢的简历
你可能喜欢求一份学生信息管理的java源文件,要求可以增加,修改,删除,查询等功能,最好不用到数据库,谢谢。_百度知道
求一份学生信息管理的java源文件,要求可以增加,修改,删除,查询等功能,最好不用到数据库,谢谢。
要有登陆界面,不用太高端,简单易操作就好,大神帮忙下啊~~
我有更好的答案
/*学生信息管理系统,实现学生信息:&&*增加&&int[]&a=new&int[9]&&*删除&&*查找&&*更改&&*File文件存储数据&*/import&java.util.Simport&java.lang.*;import&java.io.*;class&Student&{ private&static&Student[]&s&=&new&Student[2]; int&n&=&0; private&String& private&int& private&String&classA public&void&judge()&throws&IOException&{
Scanner&In&=&new&Scanner(System.in);
if&(n&==&0)&{
System.out.print(&你还没有录入任何学生,是否录入(Y/N):&);
str&=&In.next();
ch&=&str.charAt(0);
while&(ch&!=&'Y'&&&&ch&!=&'y'&&&&ch&!=&'N'&&&&ch&!=&'n')&{
System.out.print(&输入有误,请重新输入:&);
str&=&In.next();
ch&=&str.charAt(0);
if&(ch&==&'Y'&||&ch&==&'y')&{
this.add();
if&(ch&==&'N'&||&ch&==&'n')&{
this.menu();
} } public&void&menu()&throws&IOException//&定义菜单函数 {
int&a;//&定义switch语句变量
Scanner&in&=&new&Scanner(System.in);//&实例化输入流对象
System.out.println(&*******学生信息管理系统功能表******&);
System.out.println(&*****&&&&&&&&&&&1.增加&&&&&&&&&&&&&&&&&&&&*****&);
System.out.println(&*****&&&&&&&&&&&2.显示&&&&&&&&&&&&&&&&&&&&*****&);
System.out.println(&*****&&&&&&&&&&&3.修改&&&&&&&&&&&&&&&&&&&&*****&);
System.out.println(&*****&&&&&&&&&&&4.删除&&&&&&&&&&&&&&&&&&&&*****&);
System.out.println(&*****&&&&&&&&&&&5.查看&&&&&&&&&&&&&&&&&&&&*****&);
System.out.println(&*****&&&&&&&&&&&0.退出&&&&&&&&&&&&&&&&&&&&*****&);
System.out.println(&**********************************&);
System.out.print(&请选择(0~5):&);
a&=&in.nextInt();
while&(a&&&0&||&a&&&5)&{
System.out.print(&输入超出范围,请重新输入:&);
a&=&in.nextInt();
switch&(a)&{
this.add();
this.show();
this.modif();
this.delete();
this.look();
System.exit(0);
} } public&void&add()&throws&IOException//&定义增加函数 {
String&str,&str1,&str2;
int&i,&num1,&t&=&1;
char&ch,&ch1;
FileWriter&fw&=&new&FileWriter(&F://student.txt&,&true);
fw.write(&&&&&&&&&&&&&&录入的学生信息列表\r\n\r\n学号&&&&&姓名&&&&&班级\r\n&);
Scanner&In&=&new&Scanner(System.in);
while&(t&==&1)&{
System.out.print(&请输入学生学号:&);
num1&=&In.nextInt();
for&(i&=&0;&i&&&n;&i++)&{
while&(s[i].num&==&num1)&{
System.out.println(&已存在此学号,请重新输入&);
System.out.print(&请输入学号:&);
num1&=&In.nextInt();
s[n].num&=&num1;
str2&=&String.valueOf(num1);
fw.write(str2&+&&&&&&&);
System.out.println();
System.out.print(&请输入学生姓名:&);
s[n].name&=&In.next();
fw.write(s[n].name&+&&&&&&&&&);
System.out.println();
System.out.print(&请输入学生班级:&);
s[n].classAge&=&In.next();
fw.write(s[n].classAge&+&&\r\n&);
fw.close();
System.out.println();
System.out.print(&是否继续添加(Y/N)&);
str&=&In.next();
ch&=&str.charAt(0);
while&(ch&!=&'N'&&&&ch&!=&'n'&&&&ch&!=&'Y'&&&&ch&!=&'y')&{
System.out.print(&输入有误,请重新输入:&);
str&=&In.next();
ch&=&str.charAt(0);
if&(ch&==&'N'&||&ch&==&'n')&{
System.out.println();
System.out.print(&是否返回主菜单(Y/N)&);
str1&=&In.next();
ch1&=&str1.charAt(0);
while&(ch1&!=&'Y'&&&&ch1&!=&'y'&&&&ch1&!=&'N'&&&&ch1&!=&'n')&{
System.out.print(&输入有误,请重新输入:&);
str1&=&In.next();
ch1&=&str1.charAt(0);
if&(ch1&==&'Y'&||&ch1&==&'y')&{
this.menu();
if&(ch1&==&'N'&||&ch1&==&'n')&{
System.out.println(&正在退出...谢谢使用!&);
System.exit(0);
} } public&void&show()&throws&IOException&{
this.judge();
System.out.println(&本次操作共录入&&+&n&+&&位学生!&);
System.out.println(&你录入的学生信息如下:&);
System.out.println();
System.out.println(&学号\t\t姓名\t班级&);
for&(i&=&0;&i&&&n;&i++)&{
System.out.println(s[i].num&+&&&&&&&&&&&+&s[i].name&+&&&&&&&&&
+&s[i].classAge);
System.out.println(&系统返回主菜单!&);
this.menu(); } public&void&delete()&throws&IOException//&删除信息功能实现&注:本功能暂时不具备可扩展性 {
this.judge();
int&j&=&0,&t&=&0,&k&=&0,&num1;
Scanner&pin&=&new&Scanner(System.in);
System.out.print(&请输入要删除的学号:&);
num1&=&pin.nextInt();
for&(j&=&0;&j&&&n;&j++)&{
if&(s[j].num&==&num1)&{
if&(k&==&0)&{
System.out.println(&对不起!你要删除的学号不存在!&);
System.out.println(&系统将返回主菜单!&);
this.menu();
if&(k&==&1)&{
System.out.println(&你要删除的学生信息如下:&);//&打印管理员要删除的学生信息
System.out.println(&学号\t姓名\t班级&);//&本功能暂时不备扩展性
System.out.println(s[t].num&+&&&&&&&&&&+&s[t].name&+&&&&&&&&&
+&s[t].classAge);
System.out.println();
System.out.print(&你确定要删除(Y/N):&);
str&=&pin.next();
ch&=&str.charAt(0);
while&(ch&!=&'Y'&&&&ch&!=&'y'&&&&ch&!=&'N'&&&&ch&!=&'n')&{
System.out.print(&输入有误,请重新输入:&);
str&=&pin.next();
ch&=&str.charAt(0);
if&(ch&==&'N'&||&ch&==&'n')&{
System.out.println();
System.out.println(&系统返回主菜单!&);
this.menu();
if&(ch&==&'Y'&||&ch&==&'y')&{
for&(j&=&t;&j&&&n&-&1;&j++)&{
s[j]&=&s[j&+&1];
System.out.println(&数据成功删除!&);
System.out.println(&系统返回主菜单!&);
this.menu();
} } public&void&look()&throws&IOException&{
FileReader&fr&=&new&FileReader(&F://student.txt&);
while&((a&=&fr.read())&!=&-1)&{
System.out.print((char)&a);
fr.close();
System.out.println(&系统返回主菜单!&);
System.out.println();
this.menu(); } public&void&modif()&throws&IOException&{
this.judge();
int&j&=&0,&t&=&0,&k&=&0,&num2,&num3,&moi,&c&=&1;
String&str,&str1,&str2;
Scanner&pin&=&new&Scanner(System.in);
System.out.print(&请输入要修改的学号:&);
num2&=&pin.nextInt();
for&(j&=&0;&j&&&n;&j++)&{
if&(s[j].num&==&num2)&{
if&(k&==&0)&{
System.out.println(&对不起!你要修改的学号不存在!&);
System.out.println(&系统将返回主菜单!&);
this.menu();
if&(k&==&1)&{
System.out.println(&你要修改的学生信息如下:&);//&打印管理员要删除的学生信息
System.out.println(&学号\t姓名\t班级&);//&本功能暂时不备扩展性
System.out.println(s[t].num&+&&&&&&&&&&+&s[t].name&+&&&&&&&&&
+&s[t].classAge);
System.out.println();
System.out.print(&你确定要修改(Y/N):&);
str&=&pin.next();
ch&=&str.charAt(0);
while&(ch&!=&'Y'&&&&ch&!=&'y'&&&&ch&!=&'N'&&&&ch&!=&'n')&{
System.out.print(&输入有误,请重新输入:&);
str&=&pin.next();
ch&=&str.charAt(0);
if&(ch&==&'N'&||&ch&==&'n')&{
System.out.println();
System.out.println(&系统返回主菜单!&);
this.menu();
while&(c&==&1)&{
if&(ch&==&'Y'&||&ch&==&'y')&{
System.out
.println(&****************************************&);
System.out.println(&*****&&&&&&&&&1.修改学号&&&&&&&&&&&*****&);
System.out.println(&*****&&&&&&&&&2.修改班级&&&&&&&&&&&*****&);
System.out.println(&*****&&&&&&&&&3.修改姓名&&&&&&&&&&&*****&);
System.out
.println(&****************************************&);
System.out.print(&请选择:&);
moi&=&pin.nextInt();
switch&(moi)&{
System.out.print(&请输入新的学号:&);
num3&=&pin.nextInt();
s[t].num&=&num3;
System.out.print(&请输入新的班级:&);
str1&=&pin.next();
s[t].classAge&=&str1;
System.out.print(&请输入新的姓名:&);
str2&=&pin.next();
s[t].name&=&str2;
System.out.println(&数据已成功修改!&);
System.out.print(&是否继续修改(Y/N)&);
str&=&pin.next();
ch&=&str.charAt(0);
System.out.println();
while&(ch&!=&'Y'&&&&ch&!=&'y'&&&&ch&!=&'N'&&&&ch&!=&'n')&{
System.out.print(&输入有误,请重新输入:&);
str&=&pin.next();
ch&=&str.charAt(0);
if&(ch&==&'N'&||&ch&==&'n')&{
System.out.println();
System.out.println(&系统返回主菜单!&);
this.menu(); } public&static&void&main(String[]&args)&throws&IOException&{
Student&stu&=&new&Student();
for&(int&i&=&0;&i&&&2;&i++)&{
s[i]&=&new&Student();
stu.menu(); }}运行代码前现在F盘新建student.txt文件,然后运行程序学生信息存储在txt文件中:
采纳率:79%
来自团队:
为您推荐:
其他类似问题
源文件的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。&&jsp开发学生信息管理系统,实现了基本的增删改查的功能完成了增删改查等基本功能首页http://localhost:端口/项目登陆成功编辑学生信息添加学生信息数据库项目截图需要修改MySQLHelp.java中的db的连接信息
package com.zuidaima.db.
import java.sql.C
import java.sql.DriverM
public class MySQLHelp implements DBHelper {
public Connection getConnection() throws Exception {
Class.forName(&com.mysql.jdbc.Driver&);
String url=&jdbc:mysql://localhost:3306/crud?characterEncoding=GBK&;
String user=&root&;
String password=&111111&;
Connection conn=DriverManager.getConnection(url, user, password);
public void closeConnection(Connection connection) throws Exception {
connection.close();
另外缺少2个jar包:servlet-api jar包:http://mvnrepository.com/artifact/javax.servlet/javax.servlet-apimysql-connector-java&jar包:http://mvnrepository.com/artifact/mysql/mysql-connector-java由编辑于 11:42:11猜你喜欢已有1人打赏6个牛币请下载代码后再发表评论//xueshengxinxiguanli/xueshengxinxiguanli/.classpath/xueshengxinxiguanli/.project/xueshengxinxiguanli/.settings/xueshengxinxiguanli/.settings/.jsdtscope/xueshengxinxiguanli/.settings/org.eclipse.jdt.core.prefs/xueshengxinxiguanli/.settings/org.eclipse.wst.common.component/xueshengxinxiguanli/.settings/org.eclipse.wst.common.project.facet.core.xml/xueshengxinxiguanli/.settings/org.eclipse.wst.jsdt.ui.superType.container/xueshengxinxiguanli/.settings/org.eclipse.wst.jsdt.ui.superType.name/xueshengxinxiguanli/build/xueshengxinxiguanli/build/classes/xueshengxinxiguanli/build/classes/cn/xueshengxinxiguanli/build/classes/cn/fjnu/xueshengxinxiguanli/build/classes/cn/fjnu/edu/xueshengxinxiguanli/build/classes/cn/fjnu/edu/dao/xueshengxinxiguanli/build/classes/cn/fjnu/edu/dao/StudentDao.class/xueshengxinxiguanli/build/classes/cn/fjnu/edu/daoimpl/xueshengxinxiguanli/build/classes/cn/fjnu/edu/daoimpl/StuDaoImpl.class精精精精原精精原原原原原原原精精精相关分享精原原精原最近下载&LV5&LV1&LV1&LV2&LV1&LV7&LV1&LV1&LV1&LV1最近浏览暂无贡献等级&LV5&LV1&LV2&LV2&LV2&LV2&LV1&LV1&LV2扫描二维码关注最代码为好友"/>扫描二维码关注最代码为好友需要一个简单的能实现javaweb简单增删改查功能的小程序程序_百度知道
需要一个简单的能实现javaweb简单增删改查功能的小程序程序
很急 谢谢了
我有更好的答案
已发邮箱.....
采纳率:69%
能不能也给我一个Java web实现增删改查的小程序,跪求
1条折叠回答
为您推荐:
其他类似问题
小程序的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。}

我要回帖

更多关于 web学生宿舍管理系统 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信