ChinaUnix.net
相关文章推荐:

java Active Object

在**省的时候,有段时间因为推迟上线的原因,终于有了时间学习。时至今日,想起敏捷软件开发中那个经典的“单线程,多任务”的例子,何不实现他并共享呢?呵呵,无聊的假期,我想不到不做这件事情的理由。 key: command & active object design parttern java 单线程 多任务 备注:我赞同一位大师的观点:源代码是最好的文档,(请别说我懒好不好)。虽然本人水平有限,无法达到让人从代码就能将意图一目了然,所以我会尽量多写一些...

by coolflowers - Java文档中心 - 2007-10-05 09:29:38 阅读(791) 回复(0)

相关讨论

Today, I write my first java program with constructor. Though it was simple, but it was a new start. It named class b, and have only statement in it: System.out.println("class b"); I invocate(invoke) it in class a by a statement b cc=new b(); it run successful and worked correctly. In additional to, I write a new method in class b, it was invoked correctly. I have enjoy it. Haha. 本文来自Chi...

by qintel - Java文档中心 - 2007-04-17 23:48:10 阅读(739) 回复(0)

Although it is based on C++, java is more of a "pure" object-oriented language. You manipulate objects with references You treat everything as an object, using a single consistent syntax. Although you treat everything as an object, the indentifier you manipulate is actually a "reference" to an object. You must create all the objects when you crete a reference, you want to connect it ...

by Kingway886 - Java文档中心 - 2006-07-13 18:09:55 阅读(961) 回复(0)

请问哪位有 java object tool ,可否提供给我使用。

by iky - Java - 2005-03-02 11:36:20 阅读(1041) 回复(0)

有一个关于AD的操作一直没有解决,请大家帮忙 我新建了一个AD,在Users目录下新建了两个组 test1,test2 test2隶属于test1 在test1,test2组里分别有两个用户user1,user2 我想查询出test1子树下面所有的用户 不过我设置查询起点 searchBase = "ou=test1,DC=ADTest,DC=com"; 后总是报出下面的错误 Problem searching directory: javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-0310...

by 天堂无语 - 服务器应用 - 2007-10-12 16:53:41 阅读(3411) 回复(0)

大家好! 有没有朋友安装过Sun java System active Server Pages 4.0,我把windows下的做的ASP网页移到solaris平面下.sun webserver和Sun java System active Server Pages 都已经正常启动.ASP做的网页路径也在WEBserver中也加了,但ASP做的页面不能打开.能不能把操作步骤告诉我,谢谢大家.

by 13023437860 - 服务器应用 - 2007-08-07 11:01:17 阅读(2730) 回复(0)

现有java代码需翻译成c++, java中有个通用的类型“object”,但c++好像没用? 如下一例: java代码: [code]public class MyHashtable extends Hashtable { object lock1; public MyHashtable(){ super(); lock1 = new object(); } [/code] c++中是否用模板: [code]template object> class MyHashtable : public map { object *lock1; public: MyHashtable() { lock1 = new Obj...

by tysn - C/C++ - 2005-11-18 20:22:40 阅读(7168) 回复(4)

class eq { String name; int age; boolean equals(object obj) { eq st=null; if (obj instanceof eq) st = (eq)obj; else return false; if(st.name==this.name&&st.age==this.age) return true; else return false; } public static void main(String[] args) { eq p1=new eq(); eq p2=new eq(); p1.name="ydc"; p1.age=13; p2.name="zy"; p2.age=20; if(p1.equals(p2)) System....

by ICANFLYISURE - Java - 2003-11-03 11:12:04 阅读(1630) 回复(9)

哪位能给段java连接微软active directory的代码学下,谢谢啦, 就连过sun的 directory server的,active directory从来没连过,不知道如何连,请高手指教下,谢谢。

by cbhfxy - Java - 2006-06-01 15:20:27 阅读(1791) 回复(2)

为什么老是报No trusted certificate found的错?System.setProperty("javax.net.ssl.trustStore",???);“?”处应该写什么东东?怎么样得到?

by javacolin - 服务器应用 - 2006-05-31 09:35:32 阅读(1394) 回复(0)

DTO就是数据传输对象(Data Transfer object)的缩写。 DTO模式或称VO模式,是指将数据封装成普通的javaBeans,在J2EE多个层次之间传输。 DTO类似信使,是同步系统中的Message。 该javaBeans可以是一个数据模型Model。 常见的方式就是为实体对象建立一个Model类,该类只包含这个对象所有字段的getter和setter。例如用户User实体有name, password字段,则建立一个UserModel类,public方法有getName,setName,getPassword,set...

by kustudy - Java文档中心 - 2009-07-10 23:08:47 阅读(1600) 回复(0)