try{
java.sql.Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","accp");
//out.println(con);
java.sql.Statement stat = con.createStatement();
rs = stat.executeQuery("select * from book");
while(rs.next()){
String name=rs.getString(3);
char c = name.charAt(0);
String[] t2 = new String[10];
//宣告輸出的格式
net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat t3 = new
HanyuPinyinOutputFormat();
t3.setCaseType(HanyuPinyinCaseType.UPPERCASE);
t3.setToneType(HanyuPinyinToneType.WITHOUT_TONE);
t3.setVCharType(HanyuPinyinVCharType.WITH_V);