New language features in Java 7
I’m just back from the Devoxx conference in Antwerp. An update was given on the new language changes that will be in Java 7. The JDK currently has a release date of September 2010.
Here are 7 of the new features that have been completed:
* Language support for collections
* Automatic Resource Management
* Improved Type Inference for Generic Instance Creation (diamond)
* Underscores in numeric literals
* Strings in switch
* Binary literals
* Simplified Varargs Method Invocation
很多特性都非常有意思,比如:
List<String> list = new ArrayList<String>();
list.add("item");
String item = list.get(0);
Set<String> set = new HashSet<String>();
set.add("item");
Map<String, Integer> map = new HashMap<String, Integer>();
map.put("key", 1);
int value = map.get("key");
可以变为:
List<String> list = ["item"];
String item = list[0];
Set<String> set = {"item"};
Map<String, Integer> map = {"key" : 1};
int value = map["key"];
最有意思的是数字:
int one_million = 1_000_000;

Virtual Ant 是可视化的 Ant,你可以直接在窗口中录制测试过程,创建 target,运行测试,基本就是点点鼠标的操作,很酷呀。此外它还可以整合到你喜欢的 IDE 中,如 Eclipse、Intellij Idea 和 Netbeans 等。唯一遗憾的是目前还不是开源的,也不是完全免费的。可以看一下官方提供的 demo 视频。
Synchronizing a Web Client Database: LocalCalendar and Google Calendar
Rich Internet Applications (RIAs) are becoming more and more popular as the capabilities available to internet clients increase. There is a growing demand for RIAs to be able to store rich, structured, searchable data on the same machine as the web browser, and to be able to synchronize this data with a centralized data store running behind the web server.
The Benefits of Java EE 5
From its inception more than a decade ago, the Java platform has matured considerably making it the preferred choice of many professionals & organizations for developing applications. In its most recent version for the enterprise — dubbed Java EE 5 — its designers have placed a special emphasis on doing more with less, so whether you're a seasoned expert or just starting out, it's likely you will find some fresh approaches that will simplify and ease your development efforts � this article takes a closer look.
How to Bridge PHP and Java for Powerful Web Solutions
Here's how to team up two of the most popular and powerful platforms for web development together. With the php-java bridge you can build classes and jar files in Java and call them and use their methods in PHP. Use the quick and easy PHP language to bring Java muscle to your web pages.
In this tutorial I am using Windows 2000 Server, PHP 5.1.4 and php-java bridge 3.1.6. Windows is my operating system of choice but there is information on installing and using php-java bridge on Linux and Mac OS. You can find it under the resource link at the end of the article. I am going to assume that you have a bit of knowledge about both PHP and Java. You should know enough to get them installed and be able to do simple coding in both.