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

ÓÃjavaдµÄÒ»¸ö¶·µØÖ÷·¢ÅÆС³ÌÐò

package bag;
import java.util.*;
public class Dou {
 /*
  * Éú³ÉÆË¿ËÅÆ
  */
 public String[] puke() {
  String[] s1 = { "ºÚÌÒ", "ºìÌÒ", "÷»¨", "·½Æ¬" };
  String[] s2 = { "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J",
    "Q", "K" };
  String[] s3 = { "СÍõ", "´óÍõ" };
  String[] s4 = new String[54];
  s4[52] = s3[0];
  s4[53] = s3[1];
  for (int i = 0; i < 52; i++) {
   s4[i] = s1[i % 4] + s2[i / 4];
  }
  return s4;
 }
 /*
  * Ï´ÅÆ
  */
 public  String[] wash(String[] s2) {
//  Dou dou = new Dou();
//  String s2[] = dou.puke();
  for (int i = 0; i < 100; i++) {
   String k;
   Random ran = new Random();
   int ran1 = ran.nextInt(54);
   int ran2 = ran.nextInt(54);
   // Ëæ»úÁ½ÕÅÅƽ»»»ÊµÏÖÏ´ÅÆ
   k = s2[ran1];
   s2[ran1] = s2[ran2];
   s2[ran2] = k;
  }
  return s2;
 }
 /*
  * ¶·µØÖ÷·¢ÅÆ
  */
 public  String[] check(String[] s1) {
//  Dou dou = new Dou();
//  String s1[] = dou.wash();
  for (int i = 0; i < 54; i++) {
   if (i % 17 == 0) {
    System.out.println("");
    int k = i / 17 + 1;
    if (k == 4)
     System.out.print("µ×ÅÆ£º" + "\t");
    else
     System.out.print("Íæ¼Ò" + k + ":" + "\t");
   }
   System.out.print(s1[i] + "\t");
  }
  return s1;
 }
 /*
  *
  * @main
  */
 public static void main(String[] args) {
  Dou dou = new Dou();
 &nbs


Ïà¹ØÎĵµ£º

Java³õʼ»¯Ë³Ðò

ÎÒÃÇ´ó¼Ò¶¼ÖªµÀ£¬¶ÔÓÚ¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é¡¢±äÁ¿¡¢³õʼ»¯¿é¡¢¹¹ÔìÆ÷£¬ËüÃǵijõʼ»¯Ë³ÐòÒÀ´ÎÊÇ£¨¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é£©>£¨±äÁ¿¡¢³õʼ»¯¿é£©>¹¹ÔìÆ÷¡£ÎÒÃÇÒ²¿ÉÒÔͨ¹ýÏÂÃæµÄ²âÊÔ´úÂëÀ´ÑéÖ¤ÕâÒ»µã
public
 class
 InitialOrderTest {   
  
    //&nb ......

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 ByteArrayInputStre ......

JavaÖз½·¨ÔÚÄÚ´æÖеıíʾ


½«Ä³ class ²úÉú³öÒ»¸ö instance Ö®ºó£¬´Ë class ËùÓÐµÄ instance field ¶¼»áÐÂÔöÒ»·Ý£¬ÄÇôËùÓÐµÄ instance method ÊÇ·ñÒ²»áÐÂÔöÒ»·Ý£¿´ð°¸ÊDz»»á£¬ÎÒÃÇÓÃfield±íʾ×ֶΣ¬ÓÃmethod±íʾ·½·¨£¬ÄÇô¼ÓÉÏstaticÇø·Öºó¾Í ÓÐËÄÖÖ£º
class field£ºÓÐÓÃstaticÐÞÊεÄfield
class method£ºÓÐÓÃstaticÐÞÊεÄmethod
instance fi ......

eclipse ÖÐ ¿ª·¢ java + flex ʱ ±¨ÕÒ²»µ½ flex µÄsdk

ÔÚeclipseÖÐн¨ÁËÒ»¸öwebÏîÄ¿ È»ºóÔÚwebÏîÄ¿ÖÐÏëÌí¼Óflex ¿ª·¢Ç°Ì¨¡£ÔÚwebÏîÄ¿ÃûÉϵã»÷ÓÒ¼ü ----flex project Nature  -----  Add flex project Nature    ÔÚµ¯³öµÄ¶Ô»°¿òÖÐ ÉèÖÃÈçͼ£º
È»ºó µã»÷ next
Flex WAR file £º  Ñ¡Ôñ ÄãµÄblazeds µÄ·¾¶ È»ºóµã»÷ Finish
½á¹û ÏîÄ¿ÏÔʾº ......

JavaÉú³ÉXMLµÄËõ½øºÍ»»ÐÐ

Ò» DOM ÒÔÏ´úÂëÓÃDOMÊÇÉú³ÉÒ»¸öXMLÎĵµ
package xml;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
imp ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ