我说清楚点:
有一个点集,包含64个点,我可以用一个Long以位图的形式表达该点集的任意子集,所以这个Long我想称它为SubSet而不是Long,而且程序中同时也要用Long表示真正的长整数,不能让这两个意义不同的Long混在一起啊
有一个点集,包含64个点,我可以用一个Long以位图的形式表达该点集的任意子集,所以这个Long我想称它为SubSet而不是Long,而且程序中同时也要用Long表示真正的长整数,不能让这两个意义不同的Long混在一起啊
解决方案 »
- java程序自学手册
- 在字符界面下,怎样指定在第几行第几列上输出文字?
- 重载能否改变返回值的类型?
- pdfbox抽取pdf文本,遇见java.io.IOException: Unknown encoding for 'GBpc-EUC-H'
- 编译已经通过,但是在runtime时有NumberFormatException异常
- 使用XML自定义控件(Custom Control Designed by XML)
- 请问如何在一个jTable指定的行列中加入鼠标事件侦听(mouseClicked)?
- 分页程序问题
- java 文件操作问题
- 如何获取IP地址???
- java HashSet和 HashMap使用问题
- 从文件中读取所有的学生对象,怎么搞?求救。我的代码如下
SubSet subSet;
Long longValue;
public SubSet getSubSet() {
return subSet;
}
public void setSubSet(SubSet subSet) {
this.subSet=subSet;
}
public Long getLongValue() {
return longValue;
}
public void setLongValue(Long longValue) {
this.longValue=longValue;
} public static void main(String[] args) {
Test<Long> test=new Test<Long>();
test.setSubSet(0l);
test.setLongValue(1l);
System.out.println(test.getSubSet());
System.out.println(test.getLongValue());
}
}
Test test=new Test();
//Test<Long> test=new Test<Long>();
test.setSubSet(0l);
test.setLongValue(1l);
System.out.println(test.getSubSet().compareTo(test.getLongValue()));
}