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

Java Êý×é List ÈçºÎ´«Öµ

// ºÏ²¢ List ÖеÄÏàͬÊý¾ÝÐÐ
// Source £º tmpOrderEntryListBeanList
// Target £º resultOrderEntryListBeanList
// ------------------------------------------------------------------

// £¨1£©½«½á¹û¸³¸ø Result Livon 2010-5-18 Èý
// ÕûÀíÁÐ±í£¬ÒÔ±ã²éѯ¿â´æ¡£
private List<OrderEntryListBean> setOrderEntryList(List<OrderEntryListBean> orderEntryListBeanList){

// £¨1£©½«½á¹û¸³¸ø Result Livon 2010-5-18 Èý
//List<OrderEntryListBean> resultList = orderEntryListBeanList;
ArrayList<OrderEntryListBean> list = new ArrayList<OrderEntryListBean>(orderEntryListBeanList);
ArrayList<OrderEntryListBean> resultList = (ArrayList<OrderEntryListBean>) list.clone();

int rdcID_i, rdcID_j ;
int itemID_i, itemID_j ;
double itemAmount_i, itemAmount_j = 0;
// £¨2£©´Ó×îºóÒ»ÐÐÏòÉÏÑ­»·£¬Ö±µ½µÚ2Ìõ£¨Èç¹û´æÔڵĻ°£©
for(int i = resultList.size() - 1; i > 0; i--){

rdcID_i = Integer.valueOf(resultList.get(i).getRdcId());
itemID_i = Integer.valueOf(resultList.get(i).getItemId());
itemAmount_i = Double.valueOf(resultList.get(i).getAmount());

// £¨3£©´ÓµÚÒ»Ìõ£¬ÏòÏ£¬Ö±µ½ÍâÑ­»·µÄµ¹ÊýµÚ2Ìõ¡£
for(int j = 0; j < i ; j++){

rdcID_j = Integer.valueOf(resultList.get(j).getRdcId());
itemID_j = Integer.valueOf(resultList.get(j).getItemId());
itemAmount_j = Double.valueOf(resultList.get(j).getAmount());

if(rdcID_i == rdcID_j && itemID_i == itemID_j ){
resultList.get(j).setAmount( String.valueOf(itemAmount_i + itemAmount_j));
resultList.remove(i);
break;
}
}

}
return resultList;

}


Ïà¹ØÎĵµ£º

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 ÀûÓÃÌ×½Ó×ÖSocketʵÏÖ¼òµ¥µÄ·þÎñÆ÷Óë¿Í»§¶ËͨÐÅ

ÎÒÃÇҪʵÏֵľßÌ幦ÄÜÊÇ£º
ÀûÓÃSocketÀàºÍServerSocketÀà±àдһ¸öC/S³ÌÐò£¬ÊµÏÖC/SͨÐÅ¡£
¿Í»§¶ËÏò·þÎñÆ÷¶Ë·¢ËÍTimeÃüÁ·þÎñÆ÷¶Ë½ÓÊܵ½¸Ã×Ö·û´®ºó½«·þÎñÆ÷¶Ëµ±Ç°Ê±¼ä·µ»Ø¸ø¿Í»§¶Ë£»¿Í»§¶ËÏò·þÎñÆ÷¶Ë·¢ËÍExitÃüÁ·þÎñÆ÷¶ËÏò¿Í»§¶Ë·µ»Ø“Bye”ºóÍ˳ö¡£
ÌâÄ¿±È½Ï¼òµ¥µÄ£¬ÎÒÃÇÖ±½ÓÀ´¿´´úÂë°É£º
Ê×ÏÈÊÇ·þÎñÆ÷¶ ......

˵˵javaÓë.NET

     ½ñÌìºÍÅóÓÑÈ¥º£±õ·Åܲ½£¬´µ´µº£·ç£¬ÎÒÃÇ×øÔÚÒ»¸ö·ÏÆúµÄ´¬°å°åÉÏ£¬ÁÄÆðÁËjavaÓë.NET¡£ÎÒÊǾö¶¨¶ÁjavaµÄ£¬¿ÉÊÇÎÒÄÇÅóÓÑÊÇÏëѧ.NET¡£
     ÆäʵÎÒÃǸ÷Óи÷µÄÏë·¨£¬ÎÒÈÏΪ¶ÁjavaÔÚÂß¼­·½Ã棬»¹ÓÐÓï·¨·½Ãæ»áÓиüºÃµÄÒ»¸öÁ˽âÓëѧϰ¡£ÒòΪjavaµÄ¿ª·¢Æ½Ì¨Ã»ÓÐ.NETµÄ¿ª·¢Æ½Ì¨ÄÇôÈË ......

´«ÖDz¥¿ÍJAVAÅàѵstruts2ѧϰ±Ê¼Ç

´«ÖDz¥¿ÍJAVAÅàѵstruts2ѧϰ±Ê¼Ç Ç°Á½ÌìÎÒÏÝÈëÁËstruts2Ô­ÀíµÄÄàÌ·Öв»¿É×Ô°ÇÁË£¬ÕâÖָоõÏ൱²»´í£¬µ«ÊÇÎÒ¸öÈË»¹ÊǸоõ»ù´¡Èç¹û²»ÊǺܺõĻ°£¬Ç§Íò²»ÒªÏÝÈ룬ÒòΪÕâÑùµÄ»°£¬ºÜÓпÉÄÜÈÃÒ»¸öÈ˱äµÃûÓÐÐÅÐÄ£¬»¹ºÃÎÒÊÇÒ»¸öÐÄÀí»¹´í²»´íµÄÈË£¬ËùÒԺܿì¾Í×ßÁ˳öÀ´¡£ËùÒÔ£¬ÎҵĸöÈ˸оõ»¹ÊÇ£¬ÏÈÕÆÎÕ»ù´¡£¬È»ºóÔÚÈ¥Àí½âÔ­Àí°É£¬Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ