name.java

来自「用NETBEANS做的一个关于Java的小小的demo.大家赐教」· Java 代码 · 共 29 行

JAVA
29
字号
/*
 * Name.java
 *
 * Created on 2007年9月19日, 下午11:25
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package newAnnotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 *
 * @author Administrator
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Name {
    /** Creates a new instance of Name */
    String first();
    String last();
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?