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

java½ðÈÚÓëÊýѧ

 
1¡¢commons-math/commons-lang-math
ÒÔÉÏÁ½¸ö°üÊÇapacheϵģ¬Ç°Õ߱ȺóÕߵŦÄÜÇ¿´ó£¬ºóÕßÓеŦÄÜÇ°¶¼ÓУ¬ºóÕßÖ÷Òª½â¾öƽʱ³ÌÐòÖеÄһЩ»ù±¾µÄÊýѧ¼ÆË㣬Ö÷ÒªÊÇ·¶Î§Åжϣ¨*Range£©,Ëæ»úÊýÉú³É£¨JVMRandom,RandomUtils£©£¬·ÖÊý´¦Àí£¨Fraction£©£¬Êý×Öת»¯¡¢´óСÅжϣ¨NumberUtils£©µÈ¡£Ç°Õß¿ÉÒÔ´¦Àí¸ü¸´ÔÓµÄÊý¾Ý·ÖÎö£¨org.apache.commons.math.analysis£©¡¢¸´Êý£¨org.apache.commons.math.complex£©¡¢·Ö²¼Ê½´¦Àí£¨org.apache.commons.math.distribution£©¡¢Êý¾ÝÔ¤²â¹À¼Æ£¨org.apache.commons.math.estimation£©¡¢·ÖÊý¡¢ÒÅ´«Ñ§(org.apache.commons.math.genetics)¡¢¼¸ºÎͼÐÎ(org.apache.commons.math.geometry)¡¢ÏßÐÔ´úÊý(org.apache.commons.math.linear)¡¢ÓÅ»¯£¨org.apache.commons.math.optimization£©¡¢Í³¼Æ£¨org.apache.commons.math.stat£©£¬´«»»(org.apache.commons.math.transform)¡¢»¹ÓÐһЩ³£Óù¤¾ßÀࣨorg.apache.commons.math.util£©¡£
Àý×Ó£ºÇóÁ½Ö±ÏߵĽ»µã£¬µÚÒ»ÌõÁ½¸ö¶Ëµã·Ö±ðΪ(0,0)¡¢(1,1)£¬ÁíÒ»ÌõÁ½¸ö¶Ëµã·Ö±ð(1,0)¡¢(0,1)¡£
˼·£ºÔÙÌõÖ±ÏߵĽ»µã£¬Êµ¼Ê¾ÍÊÇÒ»¸ö¶þÔªÒ»´Î·½³ÌµÄ½â¡£·½³ÌµÄ½âʵ¼Ê¿Éת»¯ÎªÏßÐÔ´úÊýÖеľØÕó¡£Èç3x+y=4ºÍx+2y=3Õâ¸ö¶þÔªÒ»´Î·½³Ì¡£×ªÎª¾ØÕóΪ£º
ÏÖÔھͿÉÒÔÓÃÉÏÃæ°üorg.apache.commons.math.geometryµÄÀàRealMatrix¼ÆËã¡£
´úÂ룺
double[][] coefficientsData = { { 3, 1 }, { 1, 2 } };
RealMatrix coefficients = new RealMatrixImpl(coefficientsData);
double[] constants = { 4, 3 };
double[] solution = coefficients.solve(constants);
System.out.println("ËüÃǵĽ»µãÊÇ£ºx=" + solution[0] + ";y=" + solution[1]);
×ܽ᣺Èç¹ûÒªÓõ½ÏàÓ¦¹¦Äܵģ¨±ÈÈç·½²îvarianceÊÇÔÚͳ¼Æstat°üÀ£¬¿É²é¿´¶ÔÓ¦µÄ°üÖеÄAPIºÍ¹Ù·½Àý×ÓÔõôÓá£
2¡¢jsjava
 
Õâ¸ö²å¼þ£¬¼¸ºõÓÃjsÓïÑÔÖØдÁËapache commons langÖеŦÄÜ£¬ÆäʵÊÇÉÏÃæcommons-mathµÄjs°æ£¨jsjava-math.js£©£¬Ö÷ÒªÓÐ
1) jsjava-core.js : include jsjava core classes
2) jsjava-ajax.js : include jsjava ajax classes
3) jsjava-anim.js : include jsjava animation classes
4) jsjava-math.js : include jsjava math classes
5) jsjava-blog.js : include jsjava blog classes
6) jsjava-comp.js : include jsjava components classes
7) jsjava-info.js : include jsjava information classes
 
 


Ïà¹ØÎĵµ£º

java¼òµ¥µØ¶ÁдÎļþ

×ÜÊÇÍü¼Çjava¶ÁдÎļþµÄ´úÂë¾ßÌåÔõôд£¬Ð´ÁËÒ»¸ö¼Ç¼ÈçÏÂ
String filename="mydict.txt";
File file=new File(filename);
//read file
if(file.exists())
{
try
{
BufferedReader br=new BufferedReader(new FileReader(file));
String temp=null;
while((temp=br.readLine())!=null) ......

Java³£ÓÃÊõÓï½âÊÍ

PO VO BO DTO POJO DAOÃǵĸÅÄî
J2EE¿ª·¢ÖдóÁ¿µÄרҵËõÂÔÓïºÜÊÇÈÃÈËÃÔ»ó£¬ÓÈÆäÊǸúһЩ¸ßÊÖÌÖÂÛÎÊÌâµÄʱºò£¬Èý·ÖÖӾͱ»È˼ÒÂú¿ÚµÄרҵÊõÓïÅçÔÎÁË£¬PO VO BO DTO POJO DAO£¬Ò»´ó¶ÑµÄ¾ÍÀ´ÁË£¨Ìý¹ýÀÏÂÞ¶ÔÕâÖÖÏÖÏóµÄÅúÅеÄÅóÓÑ»á»áÐÄһЦ£©¡£
    Ê×ÏÈÉùÃ÷żҲ²»ÊÇʲô¸ßÊÖ£¬ÒÔÏÂ×ܽᶼÊÇ×Ô¼ºµÄÌå»á¡£²»¶ÔÖ®´ ......

Java synchronized

ÖÚËùÖÜÖª£¬ÔÚJava¶àÏ̱߳à³ÌÖУ¬Ò»¸ö·Ç³£ÖØÒªµÄ·½Ãæ¾ÍÊÇÏ̵߳Äͬ²½ÎÊÌâ¡£
¹ØÓÚÏ̵߳Äͬ²½£¬Ò»°ãÓÐÒÔϽâ¾ö·½·¨£º

1.
ÔÚÐèҪͬ²½µÄ·½·¨µÄ·½·¨Ç©ÃûÖмÓÈësynchronized¹Ø¼ü×Ö¡£

2.
ʹÓÃsynchronized¿é¶ÔÐèÒª½øÐÐͬ²½µÄ´úÂë¶Î½øÐÐͬ²½¡£

3. ʹÓÃJDK
5ÖÐÌṩµÄjava.util.concurrent.lock°üÖеÄLock¶ÔÏó¡£ ......

Java Semaphore

package test;
/**
*
* @author openpk
*/
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
public class Main {
public static void main(String[] args) {
// Ï̳߳Ø
ExecutorService exec = Executors ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ