JAVAѧϰµÄÊý¾Ý¿âÁ¬½Ó£¬Àý×ÓÒ»Ö»¡¡
³õѧJAVA£¬ºÃ²»ÈÝÒ×½â¾öÁËÕâ¸öÊý¾Ý¿âÁ¬½ÓÎÊÌ⣬Õâ¸öÖ÷ÒªÊÇÓÐÁ½¸öÎÊÌ⣬һ¸öÊÇJDBC-odbcµÄÎÊÌ⣬Èç¹ûûÓнâ¾öºÃÊý¾ÝÔ´ÅäÖ㬾ø¶ÔÊÇÓÐÈÝÒ׳öÎÊÌâµÄ£¬¼ÙÉèÄãʹÓõÄÊÇaccessµÄÊý¾Ý¿â£¬ÕâÊÇÍøÉϵÄÒ»¸öÀý×ÓµÄÓï¾ä
String dburl="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=database.mdb";
Æäʵ²¢²»ÐèÒªÄÇô³¤£¬¼ÙÉèÄãµÄÊý¾ÝÔ´ÃûΪbook,String dburl="jdbc:odbc:book";ÕâÑù¾ÍÄÜ·ÃÎÊÁË£¬ÉÏÃæµÄд·¨Ó¦¸ÃÒ²¿ÉÒÔ£¬µ«ÊDZ¾ÈËû³É¹¦£¬
¹À¼ÆÊÇÒòΪʹÓÃÁ˾ø¶Ô·¾¶µÄÔÒò¡£
ÎÒдÁ˰ëÌ죬ÒòΪÊǸö²ËÄñ£¬ËùÒÔʵÔÚÊÇÄÑÊÜ£¬×ÜËãд³ö¸öÄÜÓõÄÁ½¸öÊý¾Ý¿âµÄ²éѯµ÷Óã¬ÆäʵÔÚÕâÀïÎÒÖ»ÓÃÁËÒ»¸öÊý¾Ý¿â£¬²»¹ýÁ½¸öÒ²ÊÇÍêÈ«¿ÉÒԵġ£
ÕâÀï¾ÍÉæ¼°µ½ÁíÒ»¸öÎÊÌ⣬Êý¾ÝÀàÐ͵ÄÎÊÌ⣬ÎÒÊÇ×ÔѧµÄ£¬¶ÔÓÚÕâ¸öʵÔÚÊÇûÓоÑ飬Ȩµ±Êǽ»ÁËѧ·ÑÁË……Ô´´úÂëÈçÏ£º
import java.sql.*;
public class Sms {
String str1="";
public String myforum(){
try{
String strurl="jdbc:odbc:myforum";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn=DriverManager.getConnection(strurl);
Statement stmt=conn.createStatement();
ResultSet rs=stmt.executeQuery("select id from tdcode WHERE sim='13461544271'");
while(rs.next()){
str1=rs.getString(1);
}
rs.close();
stmt.close();
}catch(Exception e){
}return str1;
}
public void myforum2(String str1){
try{
String strurl="jdbc:odbc:myforum";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn=DriverManager.getConnection(strurl);
Statement stmt=conn.createStatement();
ResultSet rs=stmt.executeQuery("select user from tdcode WHERE id="+str1+"");
while(rs.next()){
System.out.println(rs.getString(1));
}
rs.close();
stmt.close();
}catch(Exception e){
e.printStackTrace();
}
}
public void run(){
myforum();
myforum2(str1);
}
public static void main(Strin
Ïà¹ØÎĵµ£º
4¡¢ TimerºÍTimerTaskµÄʹÓÃ
TimerÊÇÒ»ÖÖ¶¨Ê±Æ÷¹¤¾ß£¬ÓÃÀ´ÔÚÒ»¸öºǫ́Ï̼߳ƻ®Ö´ÐÐÖ¸¶¨ÈÎÎñ£¬ÕâЩÈÎÎñ¿ÉÒÔ±»Ö´ÐÐÒ»´Î£¬Ò²¿ÉÒÔ±»¶¨ÆÚÖ´ÐС£Ã¿¸ö Timer ¶ÔÏó¶ÔÓ¦Ò»¸öºǫ́Ị̈߳¬Ë³ÐòµØÖ´ÐÐËùÓмÆÊ±Æ÷ÈÎÎñ¡£Èç¹ûÍê³Éij¸ö¼ÆÊ±Æ÷ÈÎÎñµÄʱ¼äÌ«³¤£¬ÄÇôËü»á“¶ÀÕ¼”¼ÆÊ±Æ÷µÄÈ ......
public class Calendar {
/**
* Ö±½ÓµÄ¿ÉÒԲ鿴Ч¹û
* @param args
*/
public static void main(String[] args) {
int year=input.nextInt();//Äê
int month=input.nextInt();//ÔÂ
int yearday=0;//Äê×ÜÌìÊý
//¼ ......
public int ExecProcAdd()
{
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.StoredProcedu ......
ÏÂÔØµØÖ·£ºhttp://greenvm.googlecode.com/files/JTTSEngine.7z
£¨º¬Ê¾ÀýÓëÔ´Â룬Ŀǰ½öÌṩdll·â×°£©
ÖÚËùÖÜÖª£¬ËùνTTS¼´Text To SpeechµÄÓ¢ÎÄËõд£¬Ò²¾ÍÊÇ“´ÓÎı¾×ª»»µ½ÓïÒô”¡£
TTS¼¼ÊõµÄÖ÷Òª×÷ÓÃÔÚÓÚÀûÓüÆËã»úºÏ³ÉÈËÓ²¢½«ÎÄ×ÖÐÅϢת»¯ÎªÓïÒôÐÅÏ¢½øÐв¥·Å¡£¼òµ¥µã˵£¬TTS¼¼Êõ¸³ÓèÁ˼ÆËã»ú“¿ª¿Ú ......
Ò»¡¢Java³ÌÐò×é³É
java³ÌÐòÊÇÓÉÀà×é³ÉµÄ£¬ÎļþµÄÀàÐÍÊÇ*.java¡£Ò»¸öjavaÎļþµÄ×é³ÉÈçÏ£º
public class MyJava {
}
Õâ¾ÍÊÇÒ»¸ö×î¼òµ¥µÄjavaÀà¡£Õâ¾ä»°µÄ×÷ÓþÍÊÇÉùÃ÷Ò»¸öÀ࣬
public ·ÃÎÊÐÞ ......