Search:

Type: Posts; User: tai8

Search: Search took 0.10 seconds.

  1. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    Can you please tell me what you used? I can download whatever software you used and try it on there. Thank you.
  2. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    I'm not supposed to run it like that though... I'm required to submit a screenshot of the thing running on something like Netbeans or any java interface.
  3. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    And how do I do that?
  4. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    I'm not sure what recompiled means.

    What are you running this on? I'm using NetBeans IDE 7.1. Maybe it has something to do with that? And yes this is the exact code that I'm running.
  5. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    All it says is, "Enter the initial size of a green crud population (in pounds):".

    Is it supposed to work just fine?
  6. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    Well it's pretty much the same thing I posted in the original post but here goes.

    import java.util.*;
    public class Assignment36 {


    public static void main(String a[]) {
    int...
  7. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    I typed it in and it's still not working. After initialWeight = sc.nextInt() (this was on line 25); I typed sc.nextLine(); on the next line which was line 26 for me. I did the same for...
  8. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    Ok so I think I know which one I'm supposed to use. I think it's nextLine() but how do I type that onto the code? Please if you can help me with this I would thank you 10 times.
  9. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    So I changed the java.util.* to java.util.Scanner and it's still not working. I'm looking at the link you gave me and I don't see on the Scanner page how to clear the buffer.. I'm sorry if this...
  10. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    No why? So I'm guessing there's something wrong with the scanner I'm using?
  11. Replies
    23
    Views
    2,421

    Re: I don't get why this code isn't working

    How do you clear the buffer?
  12. Replies
    23
    Views
    2,421

    I don't get why this code isn't working

    Ok so I have a problem and it is:

    The Fibonacci numbers Fn are defined as follows. F0 is 1, F1 is 1, and
    Fi+2 = Fi + Fi+1

    i = 0, 1, 2, ... . In other words, each number is the sum of the...
Results 1 to 12 of 12