Sun Java moved to the Partner repository
For Ubuntu 10.04 LTS, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. It is recommended that you use openjdk-6 instead.
If you can not switch from the proprietary Sun JDK/JRE to OpenJDK, you can install sun-java6 packages from the Canonical Partner Repository. You can configure your system to use this repository via command-line:
add-apt-repository "deb http://archive.canonical.com/ lucid partner"
相关文档:
//从数组a中删除数组b中存在的元素
String stra[] = {"g","b","c","h","k"};//原始数组
String strb[] = {"g","k"}; //移除的元素
ArrayList list = new ArrayList();
//方法一
for(int i=0;i<stra.length;i++){
int n=0;
......
同样的程序,在别人的电脑上都可以用,在我的电脑上却无论如何都通不过,郁闷啊。
昨天遇到一个问题搞了一天都没有解决,
这个程序在别人的电脑上用都可以通过,只有在我的电脑上无法通过
,我一开始装的是JDK6.0,后来卸载了装成了JDK5.0(为了和所学教程保持一致,
以及我宿舍通过测试的机器也是装的JDK5.0),
但是 ......
public class Person implements Serializable {
private String name;
private int age;
private GregorianCalendar birthday;
public Person(){
}
p ......