This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
Java program unexpectedly giving different results each time it is run
posted 3 years ago
Hello folks! I am not getting why the Java program below is givingdifferent results each tme it is run.
I have Java 7 installed on my Windows 7 Home Basic PC. This is a code from an 'excercise' from the book, Head First Java 2nd ed..
The output should obviously be:
Can you figure it out?