Can you please tell me what you used? I can download whatever software you used and try it on there. Thank you.
Type: Posts; User: tai8
Can you please tell me what you used? I can download whatever software you used and try it on there. Thank you.
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.
And how do I do that?
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.
All it says is, "Enter the initial size of a green crud population (in pounds):".
Is it supposed to work just fine?
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...
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...
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.
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...
No why? So I'm guessing there's something wrong with the scanner I'm using?
How do you clear the buffer?
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...