根据提示,在右侧编辑器补充代码,完成以下任务: 1.给annoDeprecated方法添加Deprecated 2.给annoMethoInfo方法添加MethodInfo注解,指定参数author="educoder", version=1 package step1; public class AnnoLearn { // ---------------------Begin------------------------ // 使用Deprecated注解 // ---------------------End------------------------ public void annoDeprecated(){ } // ---------------------Begin------------------------ // 使用MethodInfo注解,注意 author = educoder, version = 1 // ---------------------End------------------------ public void annoMethoInfo(){ } }
时间: 2023-06-08 12:08:14 浏览: 622
```
package step1;
public class AnnoLearn {
// ---------------------Begin------------------------
@Deprecated
public void annoDeprecated() {
}
// ---------------------End------------------------
// ---------------------Begin------------------------
@MethodInfo(author = "educoder", version = 1)
public void annoMethoInfo() {
}
// ---------------------End------------------------
}
```
阅读全文