易截截图软件、单文件、免安装、纯绿色、仅160KB

Eclipse Java注释模板设置详解

Eclipse Java注释模板设置详解  ===参考
http://blog.csdn.net/ahhsxy/archive/2009/09/11/4542682.aspx
简单模板例子:
view
plain
copy
to clipboard
print
?
<?xml version=
"1.0"
 encoding=
"UTF-8"
?><templates><template autoinsert=
"true"
 context=
"fieldcomment_context"
 deleted=
"false"
 description=
"字段的注释"
 enabled=
"true"
 id=
"org.eclipse.jdt.ui.text.codetemplates.fieldcomment"
 name=
"fieldcomment"
>
/**
 
* @Fields ${field} : ${todo}(用一句话描述这个变量表示什么)
 
*/
  
</template><template autoinsert="true"
 context=
"gettercomment_context"
 deleted=
"false"
 description=
"getter 方法的注释"
 enabled=
"true"
 id=
"org.eclipse.jdt.ui.text.codetemplates.gettercomment"
 name=
"gettercomment"
>
/**
 
 * @return ${bare_field_name}
 
 */
  
 </template><template autoinsert="true"
 context=
"constructorcomment_context"
 deleted=
"false"
 description=
"创建的构造函数的注释"
 enabled=
"true"
 id=
"org.eclipse.jdt.ui.text.codetemplates.constructorcomment"
 name=
"constructorcomment"
>
/**
 
* <p>Title:${file_name} </p>
 
* <p>Description: 构造函
数</p>
 
* ${tags}
 
*/
  
</template><template autoinsert="true"
 context=
"filecomment_context"
 deleted=
"false"
 description=
"已创建的 Java 文件的注释"
 enabled=
"true"
&


相关文档:

Java面向对象编程思想

第二章                     类和对象
A.       万物皆对象
B.        对象由表示状态的属性和表示行为的方法组成
C.     ......

java jre 安装方法 FOR FEDORE


Let's begin by downloading the latest version of JRE (Java Runtime
Environment) from here
.
Just click on the Download link where it says Java Runtime
Environment (JRE) 5.0 Update
, then you�ll need to accept the license
and download the Linux self-extracting file
.By default, Fe ......

Java中最基础的类似于HelloWorld程序的编写

下面这段程序是实现了两个操作数加法的操作运算
/**
  *the First Java
  *@author wanglei
  *@version 1.0
  */
import java.util.Scanner;
public class FirstJava{
 public static void main(String[] args){
  
  /**声明两个整型变量*/
  int opA ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号