Type: Posts; User: Schonge
Search took 0.01 seconds.
August 6th, 2013, 10:08 AM
private static final double x = 3;
What you are trying to do here doesn't make sense. When you declare a variable in a method it is a local variable and is only...
August 6th, 2013, 09:56 AM
Firstly, yes you are correct you're in the wrong forum for this type of question! You should look for a web development forum this is a Java one.
Secondly seen as you're here now...
July 31st, 2013, 03:32 PM
Hi I've been doing Project Euler problems lately but I'm having trouble with Problem 18, here it is:
By starting at the top of the triangle below and moving to adjacent numbers on the row below,...
August 30th, 2012, 10:05 PM
Having a problem trying to count the occurrences of numbers in an array!
The program is supposed to read integers between 1 and 100 and counts the occurrences of each.
The input ends with the...
July 18th, 2012, 01:36 PM
Ahh cheers thank you! I hate when the problem is as trivial as that! It makes the thread very pointless!
July 17th, 2012, 08:35 PM
If I'm not mistaken you're probably getting a NullPointerException?
You've shown that Num holds an array of Num objects but you haven't assigned a Num object to the array
Num  x = new...
July 17th, 2012, 05:03 PM
Having a problem with my Subtraction Quiz program on a specific line!
output += "\n" + number1 "-" + number2 + "=" + answer + ((number1 - number2 == answer) ? " correct" : " wrong") ;
Was going in the direction of converting the separate elements but realized the letters wouldn't give me the correct value forgot about subtracting 'A'.
I'm doing a project designing a game engine for a simple battleship game and I'm stuck on the method called incoming to record the opponents shot at a players fleet I was wondering if someone could...
April 12th, 2012, 09:57 AM
ya just realised it there myself just use the same variable name in each e.g array1[i] == array2[i] if i'm not mistaken
April 12th, 2012, 09:42 AM
I was wondering also with regards to nested For loops! Do the inner for loops get iterated fully before the outer loop iterates?
Therefore if I was to compare 2 arrays - The first...
April 12th, 2012, 07:19 AM
In my project im generating a bit string and using a console to enter the arguments like population size generation, reproduction rate, crossover rate, mutation rate, output file. In all 6...
April 10th, 2012, 02:54 PM
Maybe this isn't what you were looking for but, we use this book at the university I go to - Introduction to Java Programming (comprehensive version), by Y. Daniel Liang.
Hope this helps if not...
April 10th, 2012, 02:48 PM
Absolute hero!! thanks a mill! :D
April 10th, 2012, 09:56 AM
Hi I'm currently doing a project for one of my AI course module in university and I'm stuck on a bit of it! Obviously I don't expect anyone to do project for me but any help would be greatly...
February 1st, 2012, 08:30 AM
Cheers thanks alot!
I completely agree with your array and loop logic but have a valid reason for not using it a the moment!
Haven't been doing well in my programming exams therefore have been...
January 26th, 2012, 05:29 AM
Hi I'm having a problem with my simple lottery game!
Not sure where the problem is exactly but it has something to do with getting only one digit to match!
Example: Lottery Number was 726
January 5th, 2012, 09:22 AM
Cheers thanks for that I can see the problem now! :)
January 5th, 2012, 01:51 AM
Hi I was wondering if someone could help me with a java problem i have being doing i have the programming almost nailed down but im not getting the expected output
The question asks you to design...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!