st 发帖数: 1685 | 1 jbuilder can generate nice javadoc |
|
T***B 发帖数: 137 | 2 I couldn't my java program run. The following is what happened. Thanks.
C:\j2sdk1.4.1_01\bin>dir java*
Volume in drive C has no label.
Volume Serial Number is 7831-5828
Directory of C:\j2sdk1.4.1_01\bin
09/30/2002 02:08 AM 24,672 java.exe
09/30/2002 02:08 AM 28,789 javac.exe
09/30/2002 02:08 AM 28,795 javadoc.exe
09/30/2002 02:08 AM 28,789 javah.exe
09/30/2002 02:08 AM 28,785 javap.exe
09/30/2002 02:08 AM 24,674 javaw.exe
|
|
m******t 发帖数: 2416 | 3 I was looking for the same thing a few months back and didn't
find any. I end up building the javadoc myself. Doing it in
Eclipse wasn't very painful. 8-) |
|
g*******e 发帖数: 14 | 4 check javadoc. I believe it must be there. |
|
c*****s 发帖数: 214 | 5 eclipse是你的桌面程序。里面加了什么东西,别人不用这个程序当然看不到了。
要共享这些信息就要在源码里做些修改。
比如你在某个类的javadoc 里加上TODO 标记,别人拿到了修改,他的eclipse里自然就有
了这个task |
|
c*****s 发帖数: 214 | 6 借机讨论 :D
Bookmark是我对什么东西特有兴趣,下次希望还能找到。我觉得没有和别人分享的理由。
如果要,理由是或许你看到某人的程序写的不对,想让大家都看看。这时bookmark的内容
会是important: .. 或者 fixme: ...。但这样的事情在团队开发里都是Task, 级别不同
的Task。
你的Task会是什么?Task内容是和源码紧密相关, 需要团队所有人能在第一时间看到的。
源码可以是广义的包括java, 配置文件,测试和例子等。和源码紧密相关的评论为什么要
和源码分开呢?你难道不希望一个人看到一段程序时,第一时间了解到还有什么没完成吗
?
Task是Javadoc里很重要的一部分,也是开发协作的重要部分。你会发现所有的开发工具
对注释里的Task声明都有很好的支持,都会不约而同的在第一时间让开发者由总的了解。
如果你确定有一个Task, 不要对修改代码犹豫。这是代码的一部分。
就有
so |
|
f********h 发帖数: 149 | 7 jvm will decide when to use GC,and you
can also call GC explicitly.
check javadoc of GC |
|
c*z 发帖数: 62 | 8 Javadoc says:
Returns the current time in milliseconds. Note that while
the unit of time of the return value is a millisecond,
the granularity of the value depends on the underlying
operating system and may be larger. For example, many
operating systems measure time
in units of tens of milliseconds.
Your system might be in this case.
【 在 Mar (3月) 的大作中提到: 】 |
|
H***a 发帖数: 189 | 9 CountDownLatch in JDK1.5 is exactly what you need I think.
it's in java.util.concurrent package.
There is an example in JDK's JavaDoc.
Sample usage: Here is a pair of classes in which a group of worker threads use two countdown latches:
The first is a start signal that prevents any worker from proceeding until the driver is ready for them to proceed;
The second is a completion signal that allows the driver to wait until all workers have completed.
class Driver { // ...
void main() throws Inte |
|
jr 发帖数: 3 | 10 【 以下文字转载自 Programming 讨论区 】
【 原文由 Jr 所发表 】
新手问个问题
鼠标放到class上syntax的提示显示不出来,翻遍了选项也没找到哪里设
javadoc的设置。
哪位大侠指教一下? |
|
m******t 发帖数: 2416 | 11
(Assuming Eclipse 3) Right click on the jar file that contains
the class files, select "Properties" -> "Javadoc location", and
go from there. |
|
t****5 发帖数: 20 | 12 check javadoc of getBytes()
'the behavior is undefined' if string is beyond the charset.
the impl happens to decide just returning all the damn bytes.
是
")
是
本
回 |
|
m******t 发帖数: 2416 | 13
The Sun JDK javadoc for Integer.valueOf does specify something to that effect.
I wouldn't be suprised if other JVM vendors followed the suit.
That's a good point, though. |
|
c*****t 发帖数: 1879 | 14 Some Java IDE let you browse class files. In fact, you can
do it yourself using Java Reflection API.
However, JavaDoc is the usual way to find out what's available. |
|
m******t 发帖数: 2416 | 15 Counter-intuitively, collection.add() does not return the collection itself,
but instead a boolean. See the javadoc. |
|
c*****t 发帖数: 1879 | 16 I think that JavaDoc and Jar utilities and Java portabilities are the
main reasons for the flourishing of frameworks. Otherwise, the
documentation
itself would kill the urge of distributing a framework, not to mention
the portability issues. (C++ code, for example, is highly non-portable). |
|
m******t 发帖数: 2416 | 17
Did you compare the implementations between 1.4 and 1.5?
I am not really familiar with the method, but I don't necessarily think it's
so much a bug as the natural uncertainty from the "guessing content type"
business. I mean, if you read the javadoc Jamse Gosling wrote for the first
version of this method (found on google), it's pretty interesting:
"This disgusting hack is used to check for files have some type that can be
determined by inspection. The bytes at the beginning of the file are
ex |
|
A**o 发帖数: 1550 | 18 时常看到一些人说掌握了Java,但是让他们用Java做一个实际的项目可能又困难重重,
在这里,笔者根据自己的一点理解斗胆提出自己的一些对掌握Java这个说法的标准,当
然对于新手,也可以提供一个需要学习哪些内容的参考。另外这个标准仅限于J2SE部分
,J2EE部分的内容有时间再另说。
1、语法:必须比较熟悉,在写代码的时候IDE的编辑器对某一行报错应该能够根据
报错信息知道是什么样的语法错误并且知道任何修正。
2、命令:必须熟悉JDK带的一些常用命令及其常用选项,命令至少需要熟悉:
appletviewer、HtmlConverter、jar、java、javac、javadoc、javap、javaw、
native2ascii、serialver,如果这些命令你没有全部使用过,那么你对java实际上还
很不了解。
3、工具:必须至少熟练使用一种IDE的开发工具,例如Eclipse、Netbeans、
JBuilder、Jdeveloper、IDEA、JCreator或者Workshop,包括进行工程管理、常用选项
的设置、插件的安装配置以及进行调试。
4、API:Java的核心AP |
|
c*z 发帖数: 62 | 19 Not sure how that is done in IDE, but all these IDEs
keep parsing your file while you are editing to build the AST, I bet
that is when they get the doc too. |
|
m******t 发帖数: 2416 | 20 But what you do in your own doclet with the RootDoc tree is entirely up to
you. You don't have to write it to anywhere. You should be able to just hang
on to the data structure and expose it for other parts of your program to
query. |
|
q*****g 发帖数: 72 | 21 cool
thanks for sharing |
|
i**r 发帖数: 998 | 22 eclipse can do it very easily.
Project -> generate Javadoc
Java |
|
|
m******t 发帖数: 2416 | 24
I
Just subclass FrameworkServlet. It'll take care of all the context loading
as described in the javadoc. |
|
g*****g 发帖数: 34805 | 25 I found this annoying when searching javadoc |
|
c*****t 发帖数: 1879 | 26 Supposely there is an addon. However, I just use IE for that
purpose. I only use IE for JavaDoc and Yahoo music :) |
|
m******t 发帖数: 2416 | 27
It's always a != b. But that's not what the TIJ author meant. He is
talking about the constant string pool, which contains all the literal
strings in the application, and both a and b would be backed by the same
entry in that pool. See the javadoc for String.intern(). |
|
m******t 发帖数: 2416 | 28
wots
Just go and read the javadoc for String.intern(), will you? 8-)
Oh, and the JLS 3.10.5. |
|
m******t 发帖数: 2416 | 29
Say you are writing your own SortedSetImpl, according to the contract
defined in SortedSet (see the javadoc), SortedSetImpl is supposed to have "a
constructor with a single argument of type SortedSet, which creates a new
sorted set with the same elements and the same ordering as the input sorted
set"
So in order to replicate the ordering, at some point inside SortedSetImpl(
SortedSet original) you would need to call origin.comparator() to get the
same comparator and use that to sort.
It can be |
|
c*****t 发帖数: 1879 | 30 javadoc 里面写着呢:
*
* The loop at the bottom only accepts a value, if the random
* number was between 0 and the highest number less then 1<<31,
* which is divisible by n. The probability for this is high for small
* n, and the worst case is 1/2 (for n=(1<<30)+1).
* |
|
|
m******t 发帖数: 2416 | 32 That's subtly different than what Sun's javadoc says
though - the "will only" part especially.
reference
phantom.
that |
|
g*****g 发帖数: 34805 | 33 Not exactly sure what kind of reference you are looking for.
For API, javadoc is pretty neat and google you'll find it.
For specific problem, again google it you'll find others'
resolution. Java is more popular than C++ and as it's portable,
Windows people actually talk in a way Unix people understand.
All together it really makes it easy to find good hits quickly. |
|
g*****g 发帖数: 34805 | 34 Guess javadoc may use it, or other similar preprocessor. |
|
m*p 发帖数: 1331 | 35 最近需要用到jni,在java里面调用已有的cpp代码, 自己在学,
http://java.sun.com/developer/onlineTraining/Programming/JDCBoo
新建了ReadFile.java文件之后,在windows console用
javac ReadFile
编译通过,生成了一个ReadFile.class文件
但是诡异的是,下一步是需要生成一个 header文件,命令如下:
JavaNativeTest\src>javah ReadFile
error: cannot access ReadFile
class file for ReadFile not found
javadoc: error - Class ReadFile not found.
Error: No classes were specified on the command line. Try -help.
明明ReadFile.class, ReadFile.java都在当前目录src\下,不知道为何会出现此问题?
谢谢!! |
|
b******g 发帖数: 669 | 36 ServerSocket SSocket;
Socket CSocket;
SSocket.getLocalSocketAddress();
CSocket.getLocalSocketAddress();
CSocket.getRemoteSocketAddress();
CSocket.getLocalAddress();
在一台机器上写server,client,printout也看不出谁是谁,JAVAdoc就写ENDPOINT的
ADDRESS,搞不清楚,请解释下上面这四个方法返回的地址到底是啥?
像这种网络通信的程序,正确的思路是先写完server端,再写Client端,还是根据protocol的流程
两边一起写呢?
Eclipse 有没有像MATLAB那种可以看中间变量值的地方啊?
多谢! |
|
c******n 发帖数: 4965 | 37 it seems that there can be only one,
although the javadoc says there can be multiple.
there is a bug that makes only the first of multiple
PropertyPlaceholderConfigurer effective.
I need multiple since I want to give a default value for a placeholder in my
bean , provided by my library. if the user uses my library, the bean is
created with default behavior. otherwise if the user does not supply a
config key/val pair in his properties files, the placeholder can not be
resolved and gives an except... 阅读全帖 |
|
s*******e 发帖数: 3042 | 38 The javadoc says clearly the woken thread has to wait to obtain the monitor
before it can enter the critical section. So what's the confusion?
Not sure what you meant by 'right away'. How long do you expect it to wait
if code_B only takes one nanosec to finish? |
|
z****e 发帖数: 54598 | 39 今天把美工的需求压给外包去做了
忙里偷闲,有点时间,敲点字
说说java
先从软件工程和计算机科学的差异说起
不知道其它学校是怎么设置专业的
但是在我们学校,cs系里面只有两个major,一个是软件工程,另外一个就是传统的cs
cs不仅仅在cs系里面有,数学系也有cs的major
但是软件工程这个major只有cs里面有
看软件工程这个东西的历史,你会发现
它诞生的时候就是计算机行当发生巨大危机,几乎发展不下去的时候
ibm一个1000人左右的团队,就已经算是“超大型”的项目了
这在今天是不可想象的,今天超过1000人以上的项目随处可见
而在当时,这几乎就已经到了合作的极限了
其实传统的cs压根不是工程学这种应用科学,而是数学
因为cs捣腾的是算法,是数学,真正的数学系里面
最优秀的人搞的都是几何,代数,分析
这个层次是数学理论层次,也就是基础数学major干的事
次优秀的去搞统计,统计已经是应用数学,包括统计极其以下搞的都是应用数学
数学系里面长期有搞理论的看不起搞应用的说法,因为名声都是搞理论的拿去
剩下的去搞应用的都是去套利之辈,所以到了统计,女生的比例陡然升高
因为虽然证明很难... 阅读全帖 |
|
l********1 发帖数: 72 | 40 实验室最近有个Java和Python之争,几个中国人想使用Java重写一个网站,但是一个美
国人不愿意,他只懂Python,而且他搬了救兵,据说是硅谷的高手,发的邮件里把我们
提到的java的东西说的一无是处。
可能他说的也有道理,但是任何东西都可以说出优势和劣势。而我们的表达不行,反驳
也力不从心。
现把那个硅谷高手的邮件贴出来,纯属技术探讨。请大家出谋划策,或者看看他说的是
否有道理,或者看看如何来辩驳。非常感谢。
Hey folks,
Point by point, I guess,
The only thing the tiobe shootout shows is that there are more search result
s for Java than there are for other languages. This is mostly about prolifer
ation of usage as the language of choice in the late 90s and early 2000s tha
n anything else. Java... 阅读全帖 |
|
l********1 发帖数: 72 | 41 实验室最近有个Java和Python之争,几个中国人想使用Java重写一个网站,但是一个美
国人不愿意,他只懂Python,而且他搬了救兵,据说是硅谷的高手,发的邮件里把我们
提到的java的东西说的一无是处。
可能他说的也有道理,但是任何东西都可以说出优势和劣势。而我们的表达不行,反驳
也力不从心。
现把那个硅谷高手的邮件贴出来,纯属技术探讨。请大家出谋划策,或者看看他说的是
否有道理,或者看看如何来辩驳。非常感谢。
Hey folks,
Point by point, I guess,
The only thing the tiobe shootout shows is that there are more search result
s for Java than there are for other languages. This is mostly about prolifer
ation of usage as the language of choice in the late 90s and early 2000s tha
n anything else. Java... 阅读全帖 |
|
r***y 发帖数: 4379 | 42 俺说的跟你很多年前的想法不一样.
俺说的是 manual 和 JSR
没说要看 API reference , 再说 Hibernate 的 JavaDoc 实在不敢恭维, developer
太惜墨了, 那叫一个懒惰, 尤其是 emmanuel bernard 这厮的.
俺强调的是干活时候要查 manual , 另外, 就是要跑起来看. 不是光啃书学习.
你说的那几本书啃一遍肯定入门了, 但干活的时候根本不够用, 不少新增加, 甚至是早
就有的 api 根本就没有提到.
比如, hibernate 的 manual 比任何书都全面, 都"与时俱进", 补充的跑不了要查查
JSR, 比如 jpa, portlet, validation 等... 这些东西都不是 API reference
只要你的 application 跑起来了, 把你说的 "流水帐的manual" 的代码片段, 稍改改,
跑跑试试就都清楚了.
不知道 totempole 是不是 cs 科班出身的.
记得以前一个哥们的帖子比较有意思, 是说: cs 科班出身跟半路出家的基本差别就是,
cs 的伙计们碰到问题上来先 ... 阅读全帖 |
|
f*******3 发帖数: 351 | 43 【 以下文字转载自 WashingtonDC 讨论区 】
发信人: Westridge (西岭), 信区: WashingtonDC
标 题: Java开发人员知识点(更新)
发信站: BBS 未名空间站 (Wed Apr 18 00:03:19 2012, 美东)
Java开发人员知识点
1.听说过James Gosling,SUN和Oracle公司。知道网上下载Java的地址,在哪讨论Java
。练习过Java在Windows下的安装和配置。知道Java应用系统中常见的几种license和JCP。了
解bytecode和Java在不同系统下可以轻松移植的原理。
2.懂得基本的Java编程和行命令格式。了解面向对象的编程思路。
几个基本点:Java基本语法和控制结构,命名和代码风格,结构化,对象封装,继承,
抽象,多态,接口,异常处理,堆空间,栈空间,垃圾回收器,static,this,
synchronized,annotations,JUnit,JDBC,JSP/servlet
Java Core APIs: java.lang,java.util,java.io,java.a... 阅读全帖 |
|
z*******3 发帖数: 13709 | 44 还enum是java中“极少见”用class而非interface来进行标记的基础数据类型
assume楼主这个蠢货知道什么是autoboxing
下面这一段javadoc自己阅读,看清楚版本号
而所谓的标记的interface不过是comparable,笑死人了
楼主真不是一般的傻逼
public final class Integer
extends Number
implements Comparable
The Integer class wraps a value of the primitive type int in an object. An
object of type Integer contains a single field whose type is int.
In addition, this class provides several methods for converting an int to a
String and a String to an int, as well as other constants and methods usefu... 阅读全帖 |
|
z*******3 发帖数: 13709 | 45 大小写不怎么区别是我的特点
因为输入法的问题
哦,原来你这个傻逼还问我问题咯
没看到哦
integer是什么你不是帮我回答了吗?
我不是贴出来在哪里了吗?
你丫的猪头三自己不看javadoc关我p事啊
我凭什么要回答你啊?你算个鸟啊?
你天天做青年导师累不累啊?
你何德何能出来做青年导师啊?
唐骏给你发证书没? |
|
z*******3 发帖数: 13709 | 46 还enum是java中“极少见”用class而非interface来进行标记的基础数据类型
assume楼主这个蠢货知道什么是autoboxing
下面这一段javadoc自己阅读,看清楚版本号
而所谓的标记的interface不过是comparable,笑死人了
楼主真不是一般的傻逼
public final class Integer
extends Number
implements Comparable
The Integer class wraps a value of the primitive type int in an object. An
object of type Integer contains a single field whose type is int.
In addition, this class provides several methods for converting an int to a
String and a String to an int, as well as other constants and methods usefu... 阅读全帖 |
|
z*******3 发帖数: 13709 | 47 大小写不怎么区别是我的特点
因为输入法的问题
哦,原来你这个傻逼还问我问题咯
没看到哦
integer是什么你不是帮我回答了吗?
我不是贴出来在哪里了吗?
你丫的猪头三自己不看javadoc关我p事啊
我凭什么要回答你啊?你算个鸟啊?
你天天做青年导师累不累啊?
你何德何能出来做青年导师啊?
唐骏给你发证书没? |
|
|
F****n 发帖数: 3271 | 49 From javadoc:
"The shared EntityManager will behave just like an EntityManager fetched
from an application server's JNDI environment, as defined by the JPA
specification. It will delegate all calls to the current transactional
EntityManager, if any; otherwise, it will fall back to a newly created
EntityManager per operation." |
|
g*****g 发帖数: 34805 | 50 Guava is open source, and AbstractBiMap has 400 lines total, out of them
less than 50 lines essential to answer his question. I don't check javap or
javac implementation at all, but I do check the implementation of library
classes I am using from time to time, because the javadoc doesn't answer all
my questions.
If you have to write a data structure from scratch, I don't know better way
than copy and modify an existing one.
java |
|