Preskočiť na hlavný obsah

Príspevky

JAVA 7: Underscores in Numeric Literals

In Java 7 an underscore characters (_) can be put anywhere between digits in a numeric literals.  If application code contains numbers with so many digits, you can use an underscore character to organize digits to the groups of three, four or as much as you want. This absolutly improves code readability. Examples: long myPayment   =  1_234_567L ; long phoneNumber = 0421_555_1234_5678L ; long niceColor   =  0x68_FE_A0 ; long someFlags   =  0b01101001_10010010 ; Rules for this feature  You can place underscore characters only between digits. You cannot place underscores in the following places: at the beginning or end of a number next to a decimal point in a floating point literal before an F or L suffix in positions where a string of digits is expected int n = _42; // WARNING! an identifier, not a literal! int n = 42_; // ERROR! underscores at the end of a literal float e = 2_.72; // ERROR! underscore...

LG panel L245WP HDMI display problem

If you have the LG panel L245WP-BN and have it connected over HDMI to an NVIDIA card under Windows Vista/7, you may encounter a problem where the image at resolution 1900x1200 is cropped and off-center. Here is the solution  http://www.voetsjoeba.com/misc/edid/

Git

Git is a free and open source, distributed version control system designed to handle everything from small to very large projects. Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching and merging are fast and easy to do. Eclipse plugin:  http://www.jgit.org/updates

About Java

The java programming language is becoming more and more popular each day. It is the language without which one cannot even hope to a land a job these days. But has somebody even wondered how this language came about? There are many stories about, many books have been written. Here is my version (not approved by Sun Microsystems).

Lambda Expressions for Java

Lambda expressions are similar to anonymous methods introduced in C# 2.0, except that lambda expressions are more concise and more flexible. All lambda expressions use the lambda operator -> which is read as “goes to”. The left side of the lambda operator specifies the input parameters and the right side holds the expression or statement block. Here is an example of lambda expressions:   x  ->  x + 1 JSR 335: Lambda Expressions for the JavaTM Programming Language: Extend the Java language to support compact lambda expressions (closures), as well as related language and library features to enable the Java SE APIs to use lambda expressions effectively.

JDK 8

The goal of this Project is to to produce an open-source reference implementation of the Java SE 8 Platform, to be defined by JSR 337 in the Java Community Process. This Project is sponsored by the Build Group. History and status JDK 8 as presently conceived is the second part of Plan B. The proposed release-driver features are the Lambda and Jigsaw Projects. Additional features will be included, but they must fit into the schedule required for the release drivers. Now that work on JDK 7 is winding down, the next couple of months will be devoted to planning JDK 8 in detail. The proposed JEP Process will be a key part of this effort. Details on how Committers can participate in that process will be available shortly. Plan A: JDK 7 (as currently defined) Mid 2012 Plan B: JDK 7 (minus Lambda, Jigsaw, and part of Coin) Mid 2011 JDK 8 (Lambda, Jigsaw, the rest of Coin, ++) Late 2012