public boolean Numornot(String msg){
try{
Integer.parseInt(msg);
return true;
}catch(Exception e){
return false;
}
}
public boolean Numornot(String msg){
try{
Integer.parseInt(msg);
return true;
}catch(Exception e){
return false;
}
}
程式要連線分成3個動作
1.告訴程式我們要連什麼資料庫,所以我們需要不同的工具,像我們要連oracle資料庫,我們就要用oracle提供的工具,如 ojdbc14.jar