@ItCastAnnotation
public class AnnotationTest {
public static void main(String[] args) throws Exception{
if(AnnotationTest.class.isAnnotationPresent(ItCastAnnotation.class))
ItCastAnnotation annotation = (ItCastAnnotation)AnnotationTest.class.getAnnotation(ItCastAnnotation.class);
}
}
错误提示:
Multiple markers at this line
- ItCastAnnotation cannot be resolved to a variable
- Syntax error, insert "AssignmentOperator Expression" to complete
Assignment
- Syntax error, insert ";" to complete Statement
- annotation cannot be resolved to a variable
什么意思啊。真看不懂了