¹ØÓÚJAVA²¥·ÅÉùÒôÎļþ
£¨´ËÌù½÷Ïò£¬²ËÄñ¼¶JAVA³ÌÐòÔ±Ìṩ±ãÀû£¬ºÇºÇ£¬£¬ÈôÓÐÐÒ¸ßÊÖ³öÏÖ£¬»¹Íû¶à¶àÖ¸µã¡£Ð¡µÜÉõ»¶£¡£©
×î½üæÓÚ¿ª·¢Ò»Ì×¼à¿Øϵͳ¡£
ÐèÒª±¨¾¯ÉùÒô¡£
ÔÚÑ°Çó½â¾ö·½°¸µÄʱºò£¬³öÏÖÁ½ÖÖ·½°¸¡£
Ò»¡¢ÓÃjavax.sound.sampled.*°ü£¬½øÐÐÉùÒô´¦Àí¡£
¶þ¡¢ÓÃsun.audio.AudioPlayer°ü£¬½øÐÐÉùÒô´¦Àí¡£
µÚÒ»ÖÖ·½°¸ÓÃÆðÀ´£¬»á¾³£ÐÔ³öÏÖ¿¨ÖÍÏÖÏó£¬ÈÃÎÒ¿àÄÕ²»ÒÑ¡£¶øµÚ¶þÖÖ·½°¸£¬ÏÔÈ»±»´ó¼ÒÈÏ¿É£¬ÍøÉÏÒ²ÓкܶàÈËÍƼö£¬È»¶ø´Ë·½°¸µÄÑ»·²¥·Å´¦Àí£¬È´ºÜÉÙÓÐÈË·¢Ìû¡£¡£ÓôÃƵĺܡ£¡£
¹þ¹þ£¬£¬Ç°±ß¶¼ÊÇ·Ï»°£¬£¬µ±È»ÎÒÏÖÔÚ½â¾öµÄ£¬£¬Ò²·Ç³£¼òµ¥¡£ °ÑÎļþÅ׳öÀ´ÁË¡£¡£
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import sun.audio.AudioData;
import sun.audio.AudioPlayer;
import sun.audio.AudioStream;
import sun.audio.ContinuousAudioDataStream;
public class Sound {
private ContinuousAudioDataStream gg ;
public Sound(String Filename) {
try{
InputStream in = new FileInputStream(Filename);
AudioStream as = new AudioStream(in);
AudioData data = as.getData();
gg= new ContinuousAudioDataStream (data); //´Ë¾Ù¼´ÎªÑ»·²¥·ÅÖ®ÓÃ
} catch(FileNotFoundException e){
//
} catch(IOException e){
//
}
}
public void play(){
AudioPlayer.player.start(gg);
}
public void stop(){
AudioPlayer.player.stop(gg);
}
}
ÓÐÐèÒªµÄ·ÖÏí£¬£¬¸üºÃÂß¼»¹Íû¸÷λ´óϺָµãÖ¸µã¡£¡£
Ïà¹ØÎĵµ£º
ÏÈ´´½¨Ò»¸ö´æ´¢¹ý³Ì
create or replace function addvalue(value1 in number, value2 in number) return number is
result number;
begin
result:=value1+value2;
return(result);
end ;
ÏÂÃæÊÇjavaµ÷ÓÃ
Connection conn = JDBCUtils.getConnection();
CallableStatement cs = conn.prepareCall("{? = call addval ......
public static String htmlEncode(String pstrWord)
{
if((pstrWord != null)&&(pstrWord != ""))
......
http://www.ajaxlines.com/ajax/stuff/article/using_google_is_ajax_search_api_with_java.php
I was rather depressed over a year ago when Google deprecated their SOAP Search API with their AJAX Search API. Essentially Google was saying that they didn want anyone programmatically accessing Google search ......
¶¨ÒåÔÚÒ»¸öÀàÄÚ²¿µÄÀà½ÐÄÚ²¿À࣬°üº¬ÄÚ²¿ÀàµÄÀà³ÆΪÍⲿÀà¡£ÄÚ²¿Àà¿ÉÒÔÉùÃ÷public¡¢protected¡¢privateµÈ·ÃÎÊÏÞÖÆ£¬¿ÉÒÔÉùÃ÷ΪabstractµÄ¹©ÆäËûÄÚ²¿Àà»òÍⲿÀà¼Ì³ÐÓëÀ©Õ¹£¬»òÕßÉùÃ÷Ϊstatic¡¢finalµÄ£¬Ò²¿ÉÒÔʵÏÖÌض¨µÄ½Ó¿Ú¡£staticµÄÄÚ²¿ÀàÐÐΪÉÏÏóÒ»¸ö¶ÀÁ¢µÄÀ࣬·ÇstaticÔÚÐÐΪÉÏÀàËÆÀàµÄÊôÐÔ»ò·½·¨ÇÒ½ûÖ¹ÉùÃ÷staticµÄ·½· ......
Java³ÉÔ±µÄĬÈÏ·ÃÎÊ¿ØÖÆ
ÎÒ¶¥¶ÔÓÚÒ»¸öClassµÄ³ÉÔ±±äÁ¿»ò³ÉÔ±º¯Êý£¬Èç¹û²»ÓÃpublic, protected, privateÖеÄÈκÎÒ»¸öÐÞÊΣ¬ÄÇô¸Ã³ÉÔ±»ñµÃ“ĬÈÏ·ÃÎÊ¿ØÖÆ”¼¶±ð£¬¼´package access £¨°ü·ÃÎÊ£©¡£
ÊôÓÚpackage accessµÄ³ÉÔ±¿ÉÒÔ±»Í¬Ò»¸ö°üÖеÄÆäËûÀà·ÃÎÊ£¬µ«²»Äܱ»ÆäËû°üµÄÀà·ÃÎÊ¡£
° ......