
java基础
欣兄
这个作者很懒,什么都没留下…
展开
-
单例设计模式
梳理梳理一下自己的IT知识,开始写写博客,无论别人有没有写过,//懒汉式public class SinglePattern {//声明一个静态的私有对象private static SinglePatternsinglePattern = null;//私有的构造方法,防止外部类new对象private SinglePattern(){System.out.p原创 2017-11-15 16:12:10 · 144 阅读 · 0 评论 -
json缺少其他包
要使程序可以运行必须引入JSON-lib包,JSON-lib包同时依赖于以下的JAR包:1、commons-lang.jar2、commons-beanutils.jar3、commons-collections.jar4、commons-logging.jar 5、ezmorph.jar6、json-lib-2.2.2-jdk15.jar原创 2016-12-07 19:15:51 · 443 阅读 · 0 评论 -
mac myEclipse 更改jre版本
选择偏好设置---->Java---->installed JREs,然后右边出来的框里面选择add---->Standard VM,然后填充为如下信息。主要是jreHome,选择到Home这个目录。点击完成后,选择1.6就可以。然后修改某个项目的引用jre。右键某个项目--->Properties--->就ok。原创 2016-01-22 18:57:24 · 1055 阅读 · 0 评论 -
Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
结果编译时出现:No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instance of type E(e.g. x.new A() where x is an instance of E). E指代那个内部类。根据提示,没有可访问的内部类E的实例,必须分配一个...转载 2018-03-14 17:01:01 · 534 阅读 · 0 评论