Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÈÕÆÚ

Date ---->String
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String date = sdf.fomat(new Date());

String ---->Date
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse("2010-03-16");

ÈÕÆÚ±È½Ï´óС£¬Õâ¾ÍÓõ½ÁËDateÀàÖеÄbefore()ºÍafter()·½· ......

ɵB×Ô¼º¿´µÄjava±Ê¼Ç£º½âÎöXML

 ½ñÍíÁÄÁËÒ»ÍíÌ죬±ß¿´java ±ßÁÄÌ죬ûÓм¯Öо«ÉñÈ¥¿´¡£Ã»¸ã¶®java¶ÁÈ¡xml µÄ»úÖÆ¡£¿´ÁËһЩÊéÏȰÑËû¼Ç¼һÏ¡£²ÉÓÃDOMÎĵµ¶ÔÏóÄ£ÐÍ£¬µÚÒ»ÖÖ·½·¨À´½âÎö¡£Ìý˵ÕâÖÖ½âÎö»áÓÐһЩȱµã£¬²»¹ý×ÜËãµ÷ÊÔͨÁË£¬ËãÊÇÒ»ÖÖ½ø²½¡£
<?xml version="1.0" encoding="utf-8"?>
<item>
  <node>aa</node&g ......

Java enum ö¾ÙÀàÐÍ

Java enum ö¾ÙÀàÐÍ
ö¾ÙÀàÐÍÊÇÒ»¸ö³£Á¿¼¯ºÏµÄÊý¾ÝÀàÐÍ¡£
ÒòΪ¶¼Êdz£Á¿£¬ËùÒÔÒ»¸öö¾ÙÀàÐÍÖеÄ×Ö¶ÎÃû¶¼Òª´óд¡£
ÔÚJAVAÖУ¬Ã¶¾ÙÀàÐ͵͍ÒåÊÇͨ¹ý“enum“¹Ø¼ü×Ö½øÐеġ£ÀýÈçÄãÒª¶¨Òå
Ò»¸ö±íʾһ¸öÐÇÆÚµÄÿһÌìµÄö¾ÙÀàÐÍ£º
public enum Day {
  SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY ......

JavaÖеĶÑÕ»(°ïÄãÀí½âÄÚ´æÄ£ÐÍ)

JavaÖжÑÕ»µÄ¸ÅÄȻÊÇÂß¼­Éϵģ¬ÔÚÍêÈ«·ûºÏJava¹æ·¶µÄJava´¦ÀíÆ÷ÃæÊÀ֮ǰ£¬ËùÓÐJavaÐéÄâ»úÌṩµÄÄÚÈݶ¼ÊÇÓÉÈí¼þÄ£Äâ³öÀ´µÄ¡£
ʲô½Ð¶Ñ£¿ÄãÓÃÊ®¼¸¸öÂ齫ůÊúÖ±µþ³ÉÒ»ÞûÕâ½Ð¶Ñ£¬Äã¿ÉÒÔ´ÓÉÏÃæ¡¢ÏÂÃæ¡¢ÖмäÈÎÒâ³é³öÒ»ÕÅÅÆ£¬Ò²¿ÉÒÔÈÎÒâ²åÈëÒ»ÕÅ¡£
ʲô½ÐÕ»£¿AK-47µÄµ¯Ï»¾ÍÊÇÒ»¸öÕ»£¬ÔÚÉÏÃæµÄ×Óµ¯Ã»±»È¡³ö֮ǰ£¬ÄãÎÞ·¨È¡³öÏÂà ......

×îÖØÒªµÄ Java EE ×î¼Ñʵ¼ù 1. ʼÖÕʹÓà MVC ¿ò¼Ü


 
1. ʼÖÕʹÓà MVC ¿ò¼Ü¡£
½«ÒµÎñÂß¼­£¨Java Bean ºÍ EJB ×é¼þ£©´Ó¿ØÖÆÆ÷Âß¼­£¨Servlet/Struts ²Ù×÷£©ºÍ±íʾÂß¼­£¨JSP¡¢XML/XSLT£©ÖÐÇåÎúµØ·ÖÀë³öÀ´¡£Á¼ºÃµÄ·Ö²ã¿ÉÒÔ´øÀ´Ðí¶àºÃ´¦¡£
×¢:¶ÔÓÚһЩСÐ͵ĻòÕßÒµÎñÏà¶Ô¼òµ¥µÄϵͳ¶øÑÔ,Óÿò¼Ü¿ª·¢²¢²»ÄÜ´øÀ´ÈκÎÐ§Òæ,²¢ÇÒÎÒÉîÐÅÔÚһЩÏîÄ¿¿ª·¢ÖÐ,ÌØ±ðÊǽö½öÓÉij¸öÈ˶ÀÁ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ