Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

View RSS Feed

copeg

  1. The Groovy in Java

    Although scripting languages seem like dime a dozen, there is always that learning curve to become familiar (let alone an expert) with a new language. For those who are more familiar with java - enter groovy. Groovy is a powerful higher level language based upon java, making certain tasks trivial to accomplish relative to the low level java equivalent. The power of groovy comes into play in its ability to plug-into java, and be plugged into from java. Groovy can access class files and libraries, ...

    Updated June 23rd, 2011 at 09:07 AM by copeg

    Categories
    Scripting
  2. Logging

    Logging is a great method to monitor the progress of a program while at the same time maintaining flexibility to control the output. Simply put, logging is just printing out statements during the runtime of an application. In another blog I described a simplistic method for logging - using System.out.println. More advanced logging libraries however go beyond just printing to the console - their flexibility allows control of when, how, and where to log.

    Many logging libraries exist, ...

    Updated May 31st, 2011 at 07:32 PM by copeg

    Categories
    Debugging
  3. The Monty Hall Problem

    The Monty Hall problem is a statistical problem which originates from the television Game show Lets Make a Deal, hosted by Monty Hall. The game is simple: a contestant is presented 3 closed doors, behind one of which is a valuable prize (oftentimes described as a car, whereas the other doors have goats behind them). A contestant chooses a door. The host then opens one of the doors you did not choose, which does NOT contain the prize. Then the host asks - do you want to change your decision? What ...

    Updated May 16th, 2011 at 07:32 PM by copeg

    Categories
    Simulations
  4. How and why an SSCCE?

    The term SSCCE gets thrown around a lot in online programming forums. Its a simple acronym that stands for Short, Self Contained, Correct Example. But what is so important about an SSCCE? For starters, creating an SSCCE provides a very simple example that clearly demonstrates a given problem, helping one receive help and advice much quicker. But it also goes far beyond just that. Often just the process alone of writing an SSCCE will unveil the problem at hand. But even more important, the process ...
  5. Debugging with System.out.println

    System.out.prinln is quite possibly the most useful debugging tool there is - especially for the beginner programmer with no knowledge of other tools such as debuggers, assertions, and/or loggers. System.out.println prints to the command line the values passed to the method as an argument (if an object is passed, the String returned by Object.toString() is printed). For debugging, this tool allows the programmer to evaluate a variable value at a certain position in the code. But that's only the ...

    Updated March 11th, 2011 at 09:25 PM by copeg

    Categories
    Debugging