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

»ùÓÚJavaµÄ¼òÒײ¥·ÅÆ÷

 ÔÚJava AplicationÖÐʵÏֵļòÒײ¥·ÅÆ÷¡£À´Ô´ÓÚºúÇɶàÖ÷±àµÄ¡¶Java³ÌÐòÉè¼Æ°¸Àý½Ì³Ì¡·
ÎÒÊÔÔËÐйýÁË£¬ÆäÖÐµÄ “Ìýº£.wav”,“Ò»¶¨Òª°®Äã.wav”ÒôƵÎļþÒª·ÅÔÚclassËùÔÚµÄÎļþ¼ÐÖУ¬ÇÒÖ»Ö§³Öwav¸ñʽ
Ô´´úÂ룺
import java.applet.Applet;
import java.applet.AudioClip;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
public class TestAudioClip extends JFrame implements ActionListener,ItemListener {
 
 
 
  boolean looping=false;
  
  
  String[] chioces={"Ìýº£.wav","Ò»¶¨Òª°®Äã.wav"};
  
  URL sound1File1=getClass().getResource(chioces[0]);
  URL sound2File2=getClass().getResource(chioces[1]);
  //private AudioClip sound1;
  
  AudioClip sound1=Applet.newAudioClip(sound1File1);
  AudioClip sound2=Applet.newAudioClip(sound2File2);
  AudioClip chosenClip=sound1;
  
  JComboBox soundFiles=new JComboBox(chioces);
  JButton playButton=new JButton("¿ªÊ¼²¥·Å");
  JButton loopButton=new JButton("Ñ­»·²¥·Å");
  JButton stopButton=new JButton("Í£Ö¹²¥·Å");
  JLabel status=new JLabel("ÇëÑ¡Ôñ²¥·ÅµÄÒôÀÖ");
  JPanel controlPanel=new JPanel();
  Container container=getContentPane();
  
  
  public TestAudioClip(){
   
   super("ÒôÀÖ²¥·ÅÆ÷");
   soundFiles.setBackground(Color.yellow);
   soundFiles.setSelectedIndex(0);
   soundFiles.addItemListener(this);
   
   playButton.addActionListener((java.awt.event.ActionListener) this);
   loopButton.addActionListener((java.awt.event.ActionListener) this);
   stopButton.addActionListener((java.awt.event.ActionListener) this);
   stopButton.setEnabled(false);
  


Ïà¹ØÎĵµ£º

JavaÖеķºÐÍ

    1¡¢Java.utilµÄ¼¯ºÏÀàÖеÄÔªËرØÐëÊǶÔÏ󻯵ģ¬ËûÃDz»ÄÜÊÇ»ù±¾ÀàÐÍ¡£Èç²»ÄÜÉùÃ÷Set<char>»òList<int>¡£µ«¶ÔList<Integer>£¬¿ÉÒÔÍùÀïÃæ¼ÓintÐÍÊý¾Ý£¬Ëü»áÓÃJavaµÄautoboxing»úÖÆ×Ô¶¯×ª»»³ÉInteger¶ÔÏó¡£
    2¡¢²ÎÊý»¯ÀàÖеÄÀàÐͲÎÊý¿ÉÒÔÊÇÊý×éÀàÐÍ£¬ÈçMap< ......

javaÓ¦ÓÃtomcatʵÏÖhttps ssl°²È«Á¬½ÓµÄ·½·¨

ÔÚÕ⿪ʼ֮ǰ£¬ÎÒÃǵÃÏÈÁ˽âÒ»ÏÂʲôÊÇhttps¡£
https (Secure Hypertext Transfer Protocol) = °²È«³¬Îı¾´«ÊäЭÒé
httpsµÄÌصãÊÇ£º
1.Êý¾Ý¼ÓÃÜ£¨SSL£© = Secure Socket Layer
2.Éí·ÝÈÏÖ¤
µ±ÄãµÄÏîÄ¿ÐèÒª¿¼ÂÇ°²È«ÐÔµÄʱºò£¬²¿·ÖÄ£¿é¿ÉÒÔÓõ½https¡£µ±È»ÕâЩ¶¼µÃµ½CA×¢²á£¬ÒªÇ®Ç®µÄŶ¡£
ÕâÀïÎÒÏë¸ø´ó¼Ò½éÉܸö²»ÊÕ·ÑµÄ ......

JavaÖÐequalºÍ==µÄ±È½Ï[zz]

×î½ü¿´µ½Ò»¸öÍøÓѹØÓÚ==ºÍequals ×öµÄ×ܽᣬ·ÖÏíÒ»ÏÂ
javaÖÐequals·½·¨ºÍ“==”µÄÇø±ð£º
equals ·½·¨ÊÇ java.lang.Object ÀàµÄ·½·¨¡£
ÓÐÁ½ÖÖÓ÷¨ËµÃ÷£º
£¨1£©¶ÔÓÚ×Ö·û´®±äÁ¿À´Ëµ£¬Ê¹ÓÓ==”ºÍ“equals()”·½·¨±È½Ï×Ö·û´®Ê±£¬Æä±È½Ï·½·¨²»Í¬¡£
“==”±È½ÏÁ½¸ö±äÁ¿±¾ÉíµÄÖµ£¬¼ ......

java ·ÖÆ»¹û

ÓÐ600¸öÆ»¹û£¬10¸öºÐ×Ó£¬ÒªÇó°Ñ600¸öÆ»¹û·Ö×°µ½10¸öºÐ×ÓÀï¡£Èç¹ûÓÐÈËÀ´ÂòÆ»¹ûËæ±ã˵³öÒ»¸öÊý£¬Ö±½ÓÄÃÕâЩºÐ×Ó×éװһϾͿÉÒÔ¸øËû²»Óòð·ÖºÐ×Ó¡£ÇëÎÊÕâ10¸öºÐ×ÓÓ¦¸Ã·Ö±ð×°¶àÉÙÆ»¹û£¿
´úÂëÈçÏÂ
import java.util.Scanner;
public class Test {
 public static void main(String[] args) {
  int box[] = ......

java ÈÕÆÚ¼ÆËã(¼¸ÌìÇ°ºó)

public class DateTest {
 public static void main(String[] args) {
  Date date = new Date(); // н¨Ò»¸öÈÕÆÚ
  SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); // ¸ñʽ»¯ÈÕÆÚ
  String beforeDate = sdf.format(getDateBefore(date, 10));
  System ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ