Explore >> Select a destination


You are here

initialcommit.com
| | www.craigpardey.com
3.7 parsecs away

Travel
| | 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
| | studiofreya.org
2.5 parsecs away

Travel
| | [AI summary] A beginner's guide demonstrating five fundamental Java programming examples, including printing Hello World, using loops, taking user input, creating patterns, and reversing strings.
| | golb.hplar.ch
3.8 parsecs away

Travel
| | [AI summary] This article explains how to use regular expressions for string processing and introduces the VerbalExpressions library to make regex patterns more human-readable in Java and JavaScript.
| | alvinalexander.com
7.1 parsecs away

Travel
| [AI summary] An example Java program using JDBC to connect to a Postgres database, execute a SQL query, and print results