1.废弃一个方法
@Deprecated
public final int getAssignedRoleCount() {
throw new UnsupportedOperationException("已不支持该方法。");
}
key:
a) @Deprecated
b)throw new UnsupportedoperationException
----------------------------------------------
内部static类可以new
public class test {
private static class A{
public int a;
}
public static void main(String[] arg){
A a1=new A();
A a2=new A();
a1.a=1;
a2.a=2;
System.out.println(a1.a+" "+a2.a);
}
}
——————————————————————————————
java 在处理文件目录时,有分格符
File.separator
@Deprecated
public final int getAssignedRoleCount() {
throw new UnsupportedOperationException("已不支持该方法。");
}
key:
a) @Deprecated
b)throw new UnsupportedoperationException
----------------------------------------------
内部static类可以new
public class test {
private static class A{
public int a;
}
public static void main(String[] arg){
A a1=new A();
A a2=new A();
a1.a=1;
a2.a=2;
System.out.println(a1.a+" "+a2.a);
}
}
——————————————————————————————
java 在处理文件目录时,有分格符
File.separator