How to check the extension of a Java 7 Path

Java NIO’s PathMatcher provides FileSystem.getPathMatcher(String syntaxAndPattern): PathMatcher matcher = FileSystems.getDefault().getPathMatcher(“glob:*.java”); Path filename = …; if (matcher.matches(filename)) { System.out.println(filename); } See the Finding Files tutorial for details.

New features in java 7

Java SE 7 Features and Enhancements from JDK 7 Release Notes This is the Java 7 new features summary from the OpenJDK 7 features page: vm JSR 292: Support for dynamically-typed languages (InvokeDynamic) Strict class-file checking lang JSR 334: Small language enhancements (Project Coin) core Upgrade class-loader architecture Method to close a URLClassLoader Concurrency and … Read more

How do I use JDK 7 on Mac OSX?

This is how I got 1.7 to work with Eclipse. I hope it helps. I Downloaded the latest OpenJDK 1.7 universal (32/64 bits) JDK from Mac OS/X branch from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html copied the jdk to /Library/Java/JavaVirtualMachines/ next to the default 1.6.0 one In Eclipse > Preferences > Java > Installed JREs you add a new one, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)