/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

bruceeckel.com
| | www.stackchief.com
0.8 parsecs away

Travel
| | Java multithreading examples including two ways of multithreading, good examples, avoiding deadlock, and how many threads can run.
| | studiofreya.org
1.8 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.
| | www.craigpardey.com
2.4 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
| | connorberry.com
14.8 parsecs away

Travel
| 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);...