关于Java构造方法问题!请高手帮帮忙!
packagecom.JavaSeries.Java.component;importjava.io.*;importjava.util.*;importjava.sql...
package com.JavaSeries.Java.component;
import java.io.*;
import java.util.*;
import java.sql.*;
import java.text.*;
import com.JavaSeries.Java.component.Con_nect;
public class Personnel
{
public static void main(String args[])
throws IOException
{
Con_nect myData;
String pno,name,sex,birthday,department;
public Personnel()
throws SQLException , ClassNotFoundException
{
this.myData = new Con_nect();
}
public Personnel(String pno,String name,String sex,
String birthday,String departmnet)
throws SQLException, ClassNotFoundException
{
this.pno = pno;
this.name = name;
this.sex = sex;
this.birthday = birthday;
this.department = dapartment;
this.myData = new Con_nect();
}
Loopa :
public void loop()
throws IOException
{
int bent,cent;
cent = bent;
switch(cent)
{
case 1: Query();
getchar();
break loopa;
case 2: Querrry();
getchar();
break loopa;
case 3: Insert();
getchar();
break loopa;
case 4: Updata();
getchar();
break loopa;
case 5: Delele();
getchar();
break loopa;
case 6: Exit();
default: break;
}
};
{这里有其它的成员方法省略}
}
} 展开
import java.io.*;
import java.util.*;
import java.sql.*;
import java.text.*;
import com.JavaSeries.Java.component.Con_nect;
public class Personnel
{
public static void main(String args[])
throws IOException
{
Con_nect myData;
String pno,name,sex,birthday,department;
public Personnel()
throws SQLException , ClassNotFoundException
{
this.myData = new Con_nect();
}
public Personnel(String pno,String name,String sex,
String birthday,String departmnet)
throws SQLException, ClassNotFoundException
{
this.pno = pno;
this.name = name;
this.sex = sex;
this.birthday = birthday;
this.department = dapartment;
this.myData = new Con_nect();
}
Loopa :
public void loop()
throws IOException
{
int bent,cent;
cent = bent;
switch(cent)
{
case 1: Query();
getchar();
break loopa;
case 2: Querrry();
getchar();
break loopa;
case 3: Insert();
getchar();
break loopa;
case 4: Updata();
getchar();
break loopa;
case 5: Delele();
getchar();
break loopa;
case 6: Exit();
default: break;
}
};
{这里有其它的成员方法省略}
}
} 展开
6个回答
展开全部
ms不太好啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你想问什么?-_-!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
不明白。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询