ÀûÓöÌÐÅè·¢ËͶÌÐŵÄJava´úÂë
ǰһ¶ÎÐèÒªÓöÌÐÅè·¢ËͶÌÐÅ£¬Ð´ÁËÒ»¶Î¶ÌÐÅè·¢ËͶÌÐŵĴúÂ룺
import javax.comm.*;
import java.util.*;
import java.io.*;
import org.smslib.*;
public class smsModem
{
private static LinkedList<COutgoingMessage> msgList = new LinkedList<COutgoingMessage>();
private static String com="";
private static int baudRate=0;
private static CService srv;
private static boolean isSending=false;
private static void testAndSetCom()
/**
Try to find out which com port is used by modem and the work baudrate.
*/
{
CommPortIdentifier portId;
Enumeration portList;
//int bauds[] = { 9600, 19200, 38400, 115200 };
int bauds[]={38400, 115200};
portList = CommPortIdentifier.getPortIdentifiers();
while (portList.hasMoreElements())
{
portId = (CommPortIdentifier) portList.nextElement();
System.out.println("PORTID:"+portId);
if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL)
{
System.out.println("Found port: " + portId.getName());
for (int i = 0; i < bauds.len
Ïà¹ØÎĵµ£º
¼ûϱߵijÌÐò¶Î
package test;
class A {
public String f(A obj)
{
return("A");
}
}
class B extends A {
public String f(B ob ......
±¾ÎÄ·ÖÊ®ËĸöÀà±ð¶ÔÕýÔò±í´ïʽµÄÒâÒå½øÐÐÁ˽âÊÍ£¬ÕâÊ®Ëĸ÷Àà±ðÊÇ£º×Ö·û/×Ö·ûÀà/Ô¤¶¨Òå×Ö·ûÀà/POSIX×Ö·ûÀà/java.lang.CharacterÀà/Unicode¿éºÍÀà±ðµÄÀà/±ß½çÆ¥ÅäÆ÷/GreedyÊýÁ¿´Ê/ReluctantÊýÁ¿´Ê/PossessiveÊýÁ¿´Ê/LogicalÔËËã·û/BackÒýÓÃ/ÒýÓÃ/ÌØÊâ¹¹Ôì¡£
1.1.×Ö·û
x ×Ö·û x¡£ÀýÈça±íʾ×Ö·ûa
\\&nbs ......
ÒÔÏÂÊÇÐèÒª»ñµÃÅäÖÃÎļþµÄÀ࣬ÆäÖлñµÃ /config.properties ÎļþµÄÊý¾Ý
package com.chinacache.boss.queryservice.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.apache.log4j.Logger;
public final class ConfigConstant {
static Logger logg ......
Ò»¡¢·´ÉäµÄ¸ÅÄî £º
·´ÉäµÄ¸ÅÄîÊÇÓÉSmithÔÚ1982ÄêÊ×´ÎÌá³öµÄ£¬Ö÷ÒªÊÇÖ¸³ÌÐò¿ÉÒÔ·ÃÎÊ¡¢¼ì²âºÍÐÞ¸ÄËü±¾Éí״̬»òÐÐΪµÄÒ»ÖÖÄÜÁ¦¡£ÕâÒ»¸ÅÄîµÄÌá³öºÜ¿ìÒý·¢Á˼ÆËã»ú¿ÆÑ§ÁìÓò¹ØÓÚÓ¦Ó÷´ÉäÐÔµÄÑо¿¡£ËüÊ×Ïȱ»³ÌÐòÓïÑÔµÄÉè¼ÆÁìÓòËù²ÉÓÃ,²¢ÔÚLispºÍÃæÏò¶ÔÏó·½ÃæÈ¡µÃÁ˳ɼ¨¡£ÆäÖÐLEAD/LEAD++ ¡¢OpenC++ ¡¢MetaXaºÍOpenJavaµÈ¾ÍÊ ......
ºêÌìÈí¼þ×÷Ϊһ¸ö¼¼ÊõʵÁ¦ÐÛºñµÄÈí¼þ¼¼Êõ¹«Ë¾£¬Ö§³Ö¹úÄÚ¿ªÔ´µÄ¹¤×÷£¬ÕûºÏ¹ú¼ÊJ2EEÏȽøµÄ¿ªÔ´¼¼Êõ£¬°Ñ¹«Ë¾×ÔÖ÷Ñз¢µÄµÄJ.Office
OAƽ̨¿ª·ÅÔ´´úÂ룬ʹÓÃÓû§Äܹ»¿´µÃ¼û²¢¸ù¾Ý×Ô¼ºµÄʵ¼ÊÇé¿öÐÞ¸ÄÔ´´úÂëʹ֮Ϊ¼ºËùÓã¬ÔÚÈç´Ë¼¤ÁҵľºÕù»·¾³ÖУ¬Ö»ÓÐÉÌÒµÈí¼þ¡¢¿ªÔ´Èí¼þÒÔ¼°·þÎñΪµ¼ÏòµÄ
Èí¼þµÈ¶àÖÖģʽ¹²Ïí£¬²¢Ï໥½è ......