Thanks You! I cahnged that and it compiled good! But I don't think it doing what I need it to do!
When I compile it it just asks for a number greater then 1 in Population and after you type 2 or what every number it finished!
here is my compelte assignment with out any errors!
import java.util.Scann er; // Needed for the Scanner class
/**
This program demonstrates a user controlled...
User Profile
Collapse
-
Thank you! I went and change that and yeah that is just me not paying attention! I went in and changed that and I went and compile it again ofter the chang and I got thes errors:
C:\Documents and Settings\Admini strator\My Documents\Popul ation.java:25: cannot find symbol
symbol : method nextInt(java.io .InputStream)
location: class java.util.Scann er
startingSize = keyboard.nextIn t(System.in);
...Leave a comment:
-
This is my errors after I compiled it
C:\Documents and Settings\Admini strator\My Documents\Popul ation.java:25: cannot find symbol
symbol : variable keyboardInput
location: class Population
startingSize = keyboardInput.n extInt(System.i n);
^
C:\Documents and Settings\Admini strator\My Documents\Popul ation.java:31: cannot find symbol
symbol : variable keyboardInput...Leave a comment:
-
So it should look like this, right?
import java.util.Scann er; // Needed for the Scanner class
/**
This program demonstrates a user controlled loop
*/
public class Population
{
public static void main(String[] args)
{
//Create a Scanner object for keyboard input.
Scanner keyboard = new Scanner(System. in);
...Leave a comment:
-
So when I go add that change how will it look? I am confused how it should look!Leave a comment:
-
Thank you! So is there anything else I needs to change or add? If you don't mind me asking?!Leave a comment:
-
Population program
Hello I am in Intro to Java Programming and I am having problems with assignment. The Homework assignment is called Population.
Population
Write a program that will predict the size of a population of organisms. The program should ask for the starting number of organisms, their average daily population increase (as a percentage), and the number of days they will multiply. For example, a population might begin with two...
No activity results to display
Show More
Leave a comment: