Java
lkxlaz
这个作者很懒,什么都没留下…
展开
-
用mac终端创建一个.jar文件(转载)
1) Ensure that all necessary files are within the directory, you have opened a terminal/Command Prompt and have navigated to that directory.2) Compile the .java class, for example HelloWorld.java with转载 2016-04-14 23:54:10 · 1458 阅读 · 0 评论 -
Install Oracle Java8 in Ubuntu via ppa
Install JDK8ppa:webupd8team supports Ubuntu 15.04, 14.10, 14.04 and 12.04 as well as Linux Mint 17.1, 17 and 13. Add the PPA and install Oracle Java 8 (the package provides both JDK8 and JRE8) using th转载 2016-05-19 00:43:08 · 421 阅读 · 0 评论 -
Java FX 8 - Tableview: Display Objects Within Objects
When you’re working around showing the data in your tableview, you may want to show a specific property of some object which is in another object. Unfortunately, there’s no built-in support for binding原创 2016-06-09 23:47:49 · 329 阅读 · 0 评论 -
[Java基础]接口能否被实例化以及匿名内部类
首先回答我们标题中的问题,接口能否被实例化呢? 答案是显而易见的,不能!下面我们考虑如下的代码:Runnable r1 = new Runnable(){ @Override public void run(){ System.out.println("Hello world one!"); } };我们知道Runnable是一个原创 2016-12-12 22:07:10 · 1997 阅读 · 2 评论 -
[Java基础] 创建一个对象数组
先从一段错误的代码切入,然后在后面提出正确的创建方法。先考虑这段代码:public class Student { private int age; private String name; public void Student() { this.age = 21; this.name = "someone"; } public v原创 2017-01-14 22:23:11 · 19176 阅读 · 3 评论