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

Uncategorized

Entries with no category

  1. 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
  2. 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
  3. 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
Page 4 of 4 FirstFirst ... 234