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

Thinking in Java Ö®String ÕýÔò±í´ïʽ

       Ê²Ã´ÊÇÕýÔò±í´ïʽ£¿
       ÕýÔò±í´ïʽÊÇÒ»ÖÖÇ¿´ó¶øÁé»îµÄÎı¾´¦Àí¹¤¾ß¡£Ê¹ÓÃÕýÔò±í´ïʽ£¬ÎÒÃÇÄܹ»ÒÔ±à³ÌµÄ·½Ê½£¬¹¹Ô츴ÔÓµÄÎı¾Ä£Ê½£¬²¢¶ÔÊäÈëµÄ×Ö·û´®½øÐÐËÑË÷¡£Ò»µ©ÕÒµ½ÁËÆ¥ÅäÕâЩģʽµÄ²¿·Ö£¬Äã¾ÍÄܹ»ËæÐÄËùÓûµØ¶ÔËüÃǽøÐд¦Àí¡£ÕýÔò±í´ïʽÌṩÁËÒ»ÖÖÍêȫͨÓõĵķ½Ê½£¬Äܹ»½â¾ö¸÷ÖÖ×Ö·û´¦ÀíÏà¹ØµÄÎÊÌ⣺ƥÅ䣬ѡÔñ£¬±à¼­ÒÔ¼°ÑéÖ¤¡£
       Ò»°ãÀ´Ëµ£¬ÕýÔò±í´ïʽ¾ÍÊÇһijÖÖ·½Ê½À´ÃèÊö×Ö·û´®¡£
      
       ÕýÔò±í´ïʽÖУ¬·´Ð±Ïß “\\”±íʾ£ºÎÒÏëÒªÔÚÕýÔò±í´ïʽÖвåÈëÒ»¸öÕýÔò±í´ïʽ·´Ð±Ïߣ¬ËùÒÔÆäºóµÄ×Ö·ûÓÐÌØÊâÒâÒå¡£È磬Èç¹ûÄãÏë±íʾһλÊý×Ö£¬ÄÇôÕýÔò±í´ïʽӦ¸ÃÊÇ\\d£¬Èç¹ûÏë²åÈëÒ»¸öÆÕͨµÄ·´Ð±Ïߣ¬ÔòÓ¦¸ÃÕâÑù\\\\.
       Òª±íʾ“Ò»¸ö»òÕ߶à¸ö֮ǰµÄ±í´ïʽ”£¬Ó¦¸ÃʹÓÃ+¡£ËùÒÔ£¬Èç¹ûÒª±íʾ“¿ÉÄÜÓÐÒ»¸ö¸ººÅ£¬ºóÃæ¸ú×Åһλ»ò¶àλÊý×Ö” ¿ÉÒÔÕâÑù£¬
  -£¿\\d+


Ïà¹ØÎĵµ£º

JavaÖм¯ºÏÈÝÆ÷ÀàListºÍSetµÄÓ÷¨

ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1  List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......

javaÖÐÈçºÎʹÓÃamcharts


×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects. ......

java »ñȡʱ¼äÀà

 public String getCheckDateString(String str) {
        Date date = new Date();//»ñÈ¡µ±Ç°ÏµÍ³ÈÕÆÚ
        SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");//ʱ¼ä¸ñʽ
       ......

¶¯Ì¬Éú³ÉjavaÎļþµÄ·½·¨

package com.hongsoft.test;
import java.io.*;
//¶¨ÖƵÄÀà×°ÈëÆ÷
public class TestCompile extends ClassLoader
{
String _compiler;
String _classpath;
public static void main(String[] args)
{
new TestCompile();
}
public TestCompile()
{
super(ClassLoader.getSystemClassLoader());
//ĬÈϱàÒëÆ ......

JAVA»­³öwavÒôƵ²¨ÐÎͼ


×ֺţº´ó ÖРС
import java.awt.Graphics;
import java.io.File;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.SourceDataLine;
public class M ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ