I need help with this error that i keep getting when i run my program.
the error is the following:
StockProg.java: 15: cannot find symbol
symbol : constructor Stock(java.lang .String,java.la ng.String,doubl e,double)
location: class Stock
Stock mystock = new Stock("wall", "street", 60.0, 65.0);
^
1 error
When I press the...
User Profile
Collapse
-
Problem with my class, "cant find symbol on my constructor"?
-
Python invalid syntax error
...Code:def main(): months = ["January","Feburary","March","April","May","June","July","August","September","October","November","December"] SIZE = 12 rainForMonth = [] * SIZE index,subNumHigh,subNumLow = 0,0,0 yearTotal, yearAverage, monthHighest, monthLowest = 0.0,0.0,0.0,0.0 -
How do I make a python list with 7 (or any number) empty elements?
I am trying to make an empty list with a set number of elements.
I know how to make an empty list.
I also know how to make a normal list.Code:x = []
I am trying to do the following.Code:x = ["d","x","f"]
I want the array variable to hold 7 empty elements,...Code:#set amount of elements SIZE = 7 array = [SIZE]
No activity results to display
Show More