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

All Blog Entries

  1. 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
  2. Complimentary Multiply with Carry: A better way to generate pseudo-random Numbers

    Java's "default" API pseudo-random number generator is a Linear congruential generator, but has a host of problems (such as a fairly short period, and series correlation). For normal day-to-day use, these problems aren't an issue, and the simplicity of this generator makes it a good choice to implement and use. However, when you start entering the domain of Monte Carlo simulations or other stochastic methods which require millions or more "uncorrelated" random numbers, the LCG ...
    Categories
    Uncategorized
  3. An introduction to the Java Native Interface

    The Java Native Interface is a way for users to run native code (i.e. code not JIT-ed/interpreted by a JVM). These are typically written in C/C++ (I'm not positive if this is a requirement, but they're definitely the most common languages used with JNI).

    In this post, I will give a brief introduction to using JNI, when to use JNI, and some mistakes that could happen when using JNI. For the purposes of this simple tip, a focus is given on Java invoking native code, however the JNI ...

    Updated April 6th, 2011 at 03:47 PM by helloworld922

    Categories
    Uncategorized
  4. Java FAQ

    Here are some foolishly answered questions about Java and Java programming:

    1. I'm having problems compiling my Java code! I've tried the command-line compiler and the Eclipse JDT compiler, but neither of these gives me the correct results.

    Quote Originally Posted by Javac
    error: Class names, 'helloworld.jpg', are only accepted if annotation processing is explicitly requested.
    Answer:
    The javac compiler does not require you to put the extension in. So the correct command should ...

    Updated April 1st, 2011 at 09:21 PM by helloworld922

    Tags: faq, java
    Categories
    Uncategorized
  5. 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 ...
Page 12 of 13 FirstFirst ... 210111213 LastLast