⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inttreeset.java

📁 这是我最近自己做的一个小JAVA程序,请各位多多指教.谢谢了.
💻 JAVA
字号:
import java.util.TreeSet;
public class IntTreeSet extends TreeSet implements IntSet{
  public boolean add(int a){
     return add(new Integer(a));  //调用TreeSet类的add(Object o)方法
  }
  public boolean remove(int a){
    return remove(new Integer(a));  //调用TreeSet类的remove(Object o)方法
  }
  public boolean add(Object o){
    throw new UnsupportedOperationException();  
  }
  public boolean remove(Object o){
    throw new UnsupportedOperationException();
  }

}



/****************************************************
 * 作者:孙卫琴                                     *
 * 来源:<<Java面向对象编程>>                       *
 * 技术支持网址:www.javathinker.org                *
 ***************************************************/

⌨️ 快捷键说明

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