Search:

Type: Posts; User: Tronez

Search: Search took 0.31 seconds.

  1. Replies
    1
    Views
    1,297

    Subtracting each element from an array

    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...
  2. Replies
    8
    Views
    1,857

    Re: Looking for duplicate birthdays program

    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
  3. Replies
    8
    Views
    1,857

    Re: Looking for duplicate birthdays program

    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
  4. Replies
    8
    Views
    1,857

    Re: Looking for duplicate birthdays program

    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...
  5. Replies
    8
    Views
    1,857

    Re: Looking for duplicate birthdays program

    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++){
    ...
  6. Replies
    8
    Views
    1,857

    Looking for duplicate birthdays program

    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...
  7. Replies
    8
    Views
    394

    Re: Need help with a program

    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?
  8. Replies
    8
    Views
    394

    Re: Need help with a program

    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 ...
  9. Replies
    8
    Views
    394

    Re: Need help with a program

    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",...
  10. Replies
    8
    Views
    394

    Beginner programmer needing help with a basic program

    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)

    ...
Results 1 to 10 of 10