Java Error

Posted leafh

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Java Error相关的知识,希望对你有一定的参考价值。

出错结果如图所示

技术分享图片

 

代码无打错名字等问题,出错原因,初学容器,使用Collection 时,忘记引入包。

import java.util.*;
import java.util.*;

public class SetInterface {
    public static void main(String []args){
        Set s = new HashSet();
        s.add("hi");
        s.add("leaf");
        s.add(new Name("f1","l1"));
        s.add(new Integer(199));
        s.add(new Name("f2","l2"));
        s.add("hello");
        System.out.println(s);
    }
}

 

以上是关于Java Error的主要内容,如果未能解决你的问题,请参考以下文章

连接MySQL出现错误:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)(代码片段

[异常解决] Make nRF51 DFU Project Appear "fatal error: uECC.h: No such file or directory"(代码片段

修改MySQL密码报错“ERROR 1819 (HY000): Your password does not satisfy the current policy requirements“(代码片段

PCL异常处理:pcl 1.8.13rdpartyoostincludeoost-1_64oost ypeofmsvc ypeof_impl.hpp(125): error(代码片段

mvn命令异常:An error has occurred in Javadoc report generation: Unable to find javadoc command异常已解决(代码片段

mvn命令异常:An error has occurred in Javadoc report generation: Unable to find javadoc command异常已解决(代码片段