javaÐÔÄܵÄÓÅ»¯(¶þ)
Èý£®ÓÅ»¯JAVA³ÌÐòÉè¼ÆºÍ±àÂ룬Ìá¸ßJAVA³ÌÐòÐÔÄܵÄһЩ·½·¨¡£
ͨ¹ýʹÓÃһЩǰÃæ½éÉܹýµÄ¸¨ÖúÐÔ¹¤¾ßÀ´ÕÒµ½³ÌÐòÖеÄÆ¿¾±£¬È»ºó¾Í¿ÉÒÔ¶ÔÆ¿¾±²¿·ÖµÄ´úÂë½øÐÐÓÅ»¯¡£Ò»°ãÓÐÁ½ÖÖ·½°¸£º¼´ÓÅ»¯´úÂë»ò¸ü¸ÄÉè¼Æ·½·¨¡£ÎÒÃÇÒ»°ã»áÑ¡
ÔñºóÕߣ¬ÒòΪ²»È¥µ÷ÓÃÒÔÏ´úÂëÒª±Èµ÷ÓÃһЩÓÅ»¯µÄ´úÂë¸üÄÜÌá¸ß³ÌÐòµÄÐÔÄÜ¡£¶øÒ»¸öÉè¼ÆÁ¼ºÃµÄ³ÌÐòÄܹ»¾«¼ò´úÂ룬´Ó¶øÌá¸ßÐÔÄÜ¡£
ÏÂÃ潫ÌṩһЩÔÚJAVA³ÌÐòµÄÉè¼ÆºÍ±àÂëÖУ¬ÎªÁËÄܹ»Ìá¸ßJAVA³ÌÐòµÄÐÔÄÜ£¬¶ø¾³£²ÉÓõÄһЩ·½·¨ºÍ¼¼ÇÉ¡£
1£®¶ÔÏóµÄÉú³ÉºÍ´óСµÄµ÷Õû¡£
JAVA³ÌÐòÉè¼ÆÖÐÒ»¸öÆÕ±éµÄÎÊÌâ¾ÍÊÇûÓкúõÄÀûÓÃJAVAÓïÑÔ±¾ÉíÌṩµÄº¯Êý£¬´Ó¶ø³£³£»áÉú³É´óÁ¿µÄ¶ÔÏ󣨻òʵÀý£©¡£ÓÉÓÚϵͳ²»½öÒª»¨Ê±¼äÉú³É¶ÔÏó£¬
ÒÔºó¿ÉÄÜ»¹Ð軨ʱ¼ä¶ÔÕâЩ¶ÔÏó½øÐÐÀ¬»ø»ØÊպʹ¦Àí¡£Òò´Ë£¬Éú³É¹ý¶àµÄ¶ÔÏ󽫻á¸ø³ÌÐòµÄÐÔÄÜ´øÀ´ºÜ´óµÄÓ°Ïì¡£
Àý1£º¹ØÓÚString
,StringBuffer£¬+ºÍappend
JAVAÓïÑÔÌṩÁ˶ÔÓÚStringÀàÐͱäÁ¿µÄ²Ù×÷¡£µ«Èç¹ûʹÓò»µ±£¬»á¸ø³ÌÐòµÄÐÔÄÜ´øÀ´Ó°Ïì¡£ÈçÏÂÃæµÄÓï¾ä£º
String
name=new String(“HuangWeiFeng”);
System.out.println(name+”is
my name”);
¿´ËÆÒѾºÜ¾«¼òÁË£¬Æäʵ²¢·ÇÈç´Ë¡£ÎªÁËÉú³É¶þ½øÖƵĴúÂ룬Ҫ½øÐÐÈçϵIJ½ÖèºÍ²Ù×÷¡£
£¨1£© Éú³ÉеÄ×Ö·û´® new String(STR_1);
£¨2£© ¸´ÖƸÃ×Ö·û´®¡£
£¨3£©
¼ÓÔØ×Ö·û´®³£Á¿”HuangWeiFeng”(STR_2);
£¨4£© µ÷ÓÃ×Ö·û´®µÄ¹¹¼ÜÆ÷£¨Constructor£©;
£¨5£© ±£´æ¸Ã×Ö·û´®µ½Êý×éÖУ¨´ÓλÖÃ0¿ªÊ¼£©
£¨6£© ´Ójava.io.PrintStreamÀàÖеõ½¾²Ì¬µÄout±äÁ¿
£¨7£© Éú³ÉеÄ×Ö·û´®»º³å±äÁ¿new StringBuffer(STR_BUF_1);
£¨8£© ¸´ÖƸÃ×Ö·û´®»º³å±äÁ¿
£¨9£© µ÷ÓÃ×Ö·û´®»º³åµÄ¹¹¼ÜÆ÷£¨Constructor£©;
£¨10£© ±£´æ¸Ã×Ö·û´®»º³åµ½Êý×éÖУ¨´ÓλÖÃ1¿ªÊ¼£©
£¨11£© ÒÔSTR_1Ϊ²ÎÊý£¬µ÷ÓÃ×Ö·û´®»º³å(StringBuffer)ÀàÖеÄappend·½·¨¡£
£¨12£©
¼ÓÔØ×Ö·û´®³£Á¿”is my
Ïà¹ØÎĵµ£º
ÔÚÍøÉÏÕÒµ½µÄ´úÂëÊÇ´íµÄ£¬×Ô¼ºÐ´ÁËÒ»¸ö
×îС¶þ³Ë·¨µÄ´úÂ룬¶þ¸ö¹¹Ôì·½·¨£¬Ò»¸öÊDz»´øȨµÄ£¬Ò»¸öÊÇ´øȨµÄ
/**
* ×îС¶þ³Ë·¨¼ÆËãÀà
*
* @author Administrator
*
*/
public class LeastSquareMethod {
private double[] x;
private double[] y;
private double[] weight;
private int m;
private do ......
JavaÔÓ̸£¨Áù£©
ÕâƪÊDZÊÕß´òËãдµÄJ2se²¿·ÖµÄ×îºóһƪÁË£¬Õâƪ½áÊøÖ®ºó£¬ÔÙдJ2ee²¿·Ö£¬²»ÖªµÀÊÇ·ñ»¹ºÏÊÊдÔÚÕâ¸ö°æ¿é£¿´ó¼Ò¿ÉÒÔ¸øµãÒâ¼û£¬Ð»Ð»´ó¼Ò¶ÔСµÜÕâô¹ÄÀøһ·дÍêÇ°ÁùƪJavaÔÓ̸µÄJ2se²¿·Ö¡£×îºóÕâƪ´òËã̸һ̸JavaÖеÄRMI»úÖƺÍJVMɳÏ䰲ȫ¿ò¼Ü¡£&nbs ......
import java.io.UnsupportedEncodingException;
public class T {
public static void main(String[] args) throws UnsupportedEncodingException {
t1();//ASCIIת»»Îª×Ö·û´®
t2();//×Ö·û´®×ª»»ÎªASCIIÂë
}
public static void t1(){//ASCIIת»»Îª×Ö·û´®
......
±àÕß°´£ºJavaÄÚ´æй©ÊÇÿ¸öJava³ÌÐòÔ±¶¼»áÓöµ½µÄÎÊÌ⣬³ÌÐòÔÚ±¾µØÔËÐÐÒ»ÇÐÕý³££¬¿ÉÊDz¼Êðµ½Ô¶¶Ë¾Í»á³öÏÖÄÚ´æÎÞÏÞÖƵÄÔö³¤£¬×îºóϵͳ̱»¾£¬ÄÇôÈç
ºÎ×î¿ì×îºÃµÄ¼ì²â³ÌÐòµÄÎȶ¨ÐÔ£¬·Àֹϵͳ±ÀÅÌ£¬×÷ÕßÓÃ×ÔÒѵÄÇ×Éí¾ÀúÓë¸÷λÍøÓÑ·ÖÏí½â¾öÕâЩÎÊÌâµÄ°ì·¨¡£
×÷ΪInternet×îÁ÷Ðеı ......