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

JAVAÖеļ¯ºÏÀà

1>CollectionµÄÓ÷¨£º
import java.util.*;
public class List1
{
 public static void main(String []args)
 {
  String a="A";
  String b="B";
  String c="C";
  Collection<String>list = new ArrayList<String>();
  list.add(a);
  list.add(b);
  Collection<String>list2 = new ArrayList <String>();
  list2.addAll(list);
  list2.add(c);
  Iterator<String>it=list2.iterator();
  while(it.hasNext())
  {
   String str=it.next();
   System.out.println(str); 
  }
 }
}
2>list.removeAllµÄÓ÷¨ÈçÏ£º
import java.util.*;
public class List2
{
 public static void main(String []args)
 {
  String a="A",b="B",c="C";
  Collection<String>list = new ArrayList<String>();
  list.add(a);
  list.add(b);
  Collection<String> list2=new ArrayList<String>();
  list2.add(b);
  list2.add(c);
  boolean isContains=list.removeAll(list2);//´ÓlistÖÐÒÆ×ßlist2µÄËùÓÐÄÚÈÝ
  System.out.println(isContains);
  Iterator<String>it=list.iterator();
  while(it.hasNext())
  {
   String str=it.next();
   System.out.println(str); 
  }
 } 
}
3>list.retainAll(list2);´ÓlistÖб£ÁôºÍlist2ÖÐÏàͬµÄ²¿·Ö


Ïà¹ØÎĵµ£º

ÏÖ´ú°æjava°®Çé

result love(boy, girl) ­
{ ­
    if( boy.Óз¿() and boy.Óгµ() ) ­
    { ­
        boy.set(nothing); ­
        return girl.¼Þ¸ø(boy); ­
  &n ......

˼¿¼ PHP+MYSQLµÄOAΪºÎûÓÐJavaµÄֵǮ?


ÏÖÔÚÊг¡ÉϵÄoa»ù±¾ÉϿɹé½áΪÁ½´óÕóÓª£¬¼´phpÕóÓªºÍjavaÕóÓª¡£µ«¶Ô½Ó´¥oa²»¾ÃµÄÓû§À´Ëµ£¬¿´µ½µÄÍùÍùÖ»ÊÇËüÃǵıíÏֻ࣬ÊÇÃ÷ÏԵļ۸ñ²îÒ죬ȴºÜÄÑ¿´³öËüÃÇÖ®¼äµÄʵ¼Ê²îÒì¡£Æäʵ£¬ PHP + MYSQL ²»ÖµÇ®²»½ö½ö¾ÖÏÞÓÚoaÈí¼þ£¬¶øÊÇÕûÌåÉÏPHP + MYSQL¿ª·¢µÄÈí¼þ¶¼²»Èçjava¿ª·¢µÄÈí¼þֵǮ¡£ÎªÊ²Ã´PHP + MYSQL µÄOAΪʲô²»ÖµÇ®Ä ......

java¶þ·Ö²éÕÒ

ת £º http://jayzotion.javaeye.com/blog/404084
public class TestBinSearch {   
  
    /**  
     * @param args  
     */  
    public  ......

java Ḭ̈߳²È«

Ḭ̈߳²È«
     Ö»ÓÐÔÚµ¥Àý²¢·¢µÄÇé¿öϲŻá³öÏÖḬ̈߳²È«ÎÊÌ⣬ÒýÆðÎÊÌâµÄÖ÷ÒªÔ­Òò¾ÍÔÚÓÚ¶ÔÏóµÄ×ÊÔ´¹²Ïí(ÈçʵÀý±äÁ¿µÈ)£¬²»¹ý¾Ö²¿±äÁ¿ÊÇḬ̈߳²È«µÄ¡£Òò´ËÔÚ³ÌÐòÉè¼ÆµÄʱºò¾¡Á¿²»ÒªÓÃʵÀý±äÁ¿¡£²úÉúÕâÑùÔ­ÒòÔÚÓÚjavaµÄÄÚ´æ·ÖÅä»úÖÆ£¬ÊµÀý±äÁ¿ÊÇ´æ·ÅÔÚ¶ÑÄÚ´æÖеÄËùÓÐÏ̹߳²Ïí£¬¶øÿ¸öÏß³ÌÒ²¶¼ÓÐ×Ô¼ºµÄÏß³ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ