Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java²¥·ÅwavµÄ»ù´¡´úÂë

import java.io.*;
public class TestMusic{
 
 private AudioFormat format;
    private byte[] samples;
 
 public static void main(String args[])throws Exception{
  TestMusic sound =new TestMusic("1.wav");
  InputStream stream =new ByteArrayInputStream(sound.getSamples());
        // play the sound
        sound.play(stream);
        // exit
        System.exit(0);
 }
 
    public TestMusic(String filename) {
        try {
            // open the audio input stream
            AudioInputStream stream =AudioSystem.getAudioInputStream(new File(filename));
            format = stream.getFormat();
            // get the audio samples
            samples = getSamples(stream);
        }
        catch (UnsupportedAudioFileException ex) {
            ex.printStackTrace();
        }
        catch (IOException ex) {
            ex.printStackTrace();
        }
   }
  
   public byte[] getSamples() {
        return samples;
    }
  
     private byte[] getSamples(AudioInputStream audioStream) {
        // get th


Ïà¹ØÎĵµ£º

java:Applet²¼¾ÖÎÊÌâ,ÈçºÎÌí¼Ó°´Å¥£¬±êÇ©ÎÊÌâ×ܽá


½ñÌìѧϰÁËapplet²¼¾ÖÎÊÌ⣺
°´Å¥¡¢±êÇ©ÊÇÔõÑù¼ÓÈëµ½applet³ÌÐò(ÈÝÆ÷)µ±ÖÐÈ¥µÄÄØ£¿
ÐèÒªÓõ½²¼¾ÖÈÝÆ÷¹ÜÀíÆ÷(LayoutManager)£ºËüÓÃÓÚЭÖúÈÝÆ÷È·¶¨¼ÓÈëµÄ×é¼þ(°´Å¥µÈ)Ó¦¸Ã·ÅÖõÄλÖÃ
awtÌṩÁË4Öг£ÓõIJ¼¾ÖÈÝÆ÷¹ÜÀíÆ÷
>>FlowLayout
>>BorderLayout
>>GridLayout
>>CardLayout
appletĬÈÏÊ ......

´«ÖDz¥¿ÍjavaÅàѵ2010Äê4ÔÂ23ÈÕ(hibernate)ѧϰ

½ñÌìÌý¿Î²ÅÖªµÀ×Ô¼º×ÔѧµÄhibernate¿ÉÒÔËãµÃÉÏÊÇһ̣ºýÍ¿£¬ÒòΪ֮ǰ¿´HibernateµÄÊé¿´ÁË¿´¼¸±é¶¼Ã»Óи㶮£¬½ñÌìÌýÁËÒ»ÌìµÄ¿Î£¬ºÜ¶à¶«Î÷¾Í»íÈ»¿ªÀÊ£¬ËùÒÔԤϰҲÊǺÜÖØÒªµÄ£¬ÄÇÅÂÊÇûÓп´¶®£¬µ«ÖÁÉÙÒ²ÓÐÓ¡Ïó¡£ ½ñÌìÉϿεĽø³Ì±È½Ï¿ì£¬ÐìÅà³ÉÀÏʦ½²¿Î£¬ÎÒÖ»ÄÜÓá°Ç¿º·¡±Á½¸ö×ÖÀ´ÐÎÈÝ£¬ÉÏ¿Îʱ¾«Á¦³äÅ棬ÓïËٿ죨µ«ÌýµÃºÜÇåÎú£¬¼ ......

java»·¾³±äÁ¿ÅäÖÃ

windows xpÏÂÅäÖÃJDK»·¾³±äÁ¿£º
1.°²×°JDK£¬°²×°¹ý³ÌÖпÉÒÔ×Ô¶¨Ò尲װĿ¼µÈÐÅÏ¢£¬ÀýÈçÎÒÃÇÑ¡Ôñ°²×°Ä¿Â¼ÎªD:\java\jdk1.5.0_08£»
2.°²×°Íê³Éºó£¬ÓÒ»÷“ÎҵĵçÄÔ”£¬µã»÷“ÊôÐÔ”£»
      3.Ñ¡Ôñ“¸ß¼¶”Ñ¡Ï£¬µã»÷“»·¾³±äÁ¿”£»
  &nb ......

Java³õʼ»¯Ë³Ðò

ÎÒÃÇ´ó¼Ò¶¼ÖªµÀ£¬¶ÔÓÚ¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é¡¢±äÁ¿¡¢³õʼ»¯¿é¡¢¹¹ÔìÆ÷£¬ËüÃǵijõʼ»¯Ë³ÐòÒÀ´ÎÊÇ£¨¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é£©>£¨±äÁ¿¡¢³õʼ»¯¿é£©>¹¹ÔìÆ÷¡£ÎÒÃÇÒ²¿ÉÒÔͨ¹ýÏÂÃæµÄ²âÊÔ´úÂëÀ´ÑéÖ¤ÕâÒ»µã
public
 class
 InitialOrderTest {   
  
    //&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ