|
You are here |
blog.gradle.org | ||
| | | | |
benjiweber.co.uk
|
|
| | | | | ||
| | | | |
mreinhold.org
|
|
| | | | | [AI summary] Oracle Chief Architect Mark Reinhold answers community questions regarding the decision to defer Project Jigsaw's modular JDK to Java 9 and outlines a strategic shift to a two-year release cycle. | |
| | | | |
connorberry.com
|
|
| | | | | Language Comparison Perl: while (<>) { print "$. : $_" } Perl: while (<>) { print "$. : $_" } CSharp: using System; using System.IO; class App { public static void Main(string[] args) { int line_number = 1; foreach (string arg in args) { foreach (string line in File.ReadLines(arg)) { Console.WriteLine(line_number + ":" + line);... | |
| | | | |
www.craigpardey.com
|
|
| | | Spring 3.2 has some very nice features for scheduling tasks. The pure Java way of doing this looks something like private ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); class ScheduledTask implements Runnable { @Override public void run() { System.out.println("Running scheduled task"); } } // Schedule a task every 5 seconds executor.scheduleAtFixedRate(new ScheduledTask(), 1, 5, TimeUnit.SECONDS); // If you don't do this then the JVM won't exit cleanly executor.shutdown(); But now, with the snazzy new Spring scheduling annotations, it can be as simple as this | ||