日志文章列表

2007年12月25日 16:56:21

EnumMap<K extends Enum<K>, V>类为非线程安全

Like most collection implementations <tt>EnumMap</tt> is not synchronized. If multiple threads access an enum map concurrently, and at least one of the threads modifies the map, it shoul..

阅读全文>>

类别: java 基础知识 |  评论(0) |  浏览(695) |  收藏
2007年12月12日 16:01:00

使用bitset求素数

//java.util.BitSet
public static void main(String[] arg)
{
//create new bitset ,size of which is 1024
BitSet sieve=new BitSet(1024);
int size=sieve.size();
//initialize the bitset
for (i..

阅读全文>>

Tags: bitset   素数  

类别: java 基础知识 |  评论(0) |  浏览(957) |  收藏
2007年11月28日 16:55:57

ArrayList非线程同步

原文:
Note that this implementation is not synchronized. If multiple threads access an ArrayList instance concurrently, and at least one of the threads modifies the list structurally, it must be sy..

阅读全文>>

Tags: arrayList   非线程同步  

类别: java 基础知识 |  评论(0) |  浏览(1100) |  收藏
2006年07月21日 20:43:41

J2EE试题

1 applet 与 servlet 如何通信
2 jsp页面间传递数据方法有哪些?
3 javascript: 页面中,一个table,3行3列,焦点在第一行第三列,按回车焦点移动到第二行第一列
4 如何考虑客户化,比如输入习惯...
5 网页中中文的..

阅读全文>>

类别: java 基础知识 |  评论(0) |  浏览(1407) |  收藏
2006年07月19日 21:40:14

我今天笔试的试题

1 错误 ?
class One {
     
     public void f()
     {System.out.println("sss") ;}
public static void main(String arg[])
{
  &nbs..

阅读全文>>

类别: java 基础知识 |  评论(6) |  浏览(1254) |  收藏
2006年07月18日 12:20:21

java 字符串反转 程序

     public String reverse(String s)
     {
           int count = s.length() ;
           char va..

阅读全文>>

类别: java 基础知识 |  评论(8) |  浏览(2200) |  收藏
2006年06月29日 16:10:09

Java新手入门的30个基本概念

前言:

  在我们学习Java的过程中,掌握其中的基本概念对我们的学习无论是J2SE,J2EE,J2ME都是很重要的,J2SE是Java的基础,所以有必要对其中的基本概念做以归纳,以便大家在以后的学习过程中更好的理解java的精髓,在..

阅读全文>>

类别: java 基础知识 |  评论(0) |  浏览(549) |  收藏