Hi,
Im looking to find a piece of code which will take an array of ints and then subtract 1 away from each element that array to keep doing this for a certain amount of times. I've managed to...
Type: Posts; User: Tronez
Hi,
Im looking to find a piece of code which will take an array of ints and then subtract 1 away from each element that array to keep doing this for a certain amount of times. I've managed to...
I'd be very grateful if somebody could give me a hand with my coding issue.
Ive been trying to do this for a while and still cant get it to work.
Thanks
Sorry about that i genuinely didnt realise, but it wont happen again.
Relating back to the issue with my current code is anybody able to help and give me some advice :)
Thanks
Can I not look in other places for help? I'm just trying to get my coding issue resolved quickly.
If I'm not meant to post on different forums with my questions I apologise.
Is anybody able to...
Ok ive now created an array and also a loop which gives my my 40 different birthday as showed below.
int myarray[] = new int[40];
for(int i = 0; i < myarray.length; i++){
...
Hi
Im very new to java and trying to make a simple java program which will work out the chances of two people sharing the same birthday in say a class of 40 people. Using the monte Carlo method...
Ok I've done that and managed to get the different values printing out, how do I now get from this to applying the values of the array?
I think Ican see what I should be doing with the program but my main difficulty is actually coding it.
So for example I can see in the main method we have the following code ...
Hi thanks for the reply. Yeah I've made the array's as shown below, but im not sure if this is correct.
String [] monthsArray = {"January", "February", "March", "April", "May", "June", "July",...
Hi guys,
I'm a new Java programmer and trying to write a basic program for my class which will take dates as shown below and then use a method (in this case the 'date' method)
...