User Profile

Collapse

Profile Sidebar

Collapse
Noah J
Noah J
Last Activity: Oct 11 '11, 03:39 AM
Joined: Apr 25 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Problem with my class, "cant find symbol on my constructor"?

    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...
    See more | Go to post

  • Noah J
    started a topic Python invalid syntax error

    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
    ...
    See more | Go to post
    Last edited by Noah J; Jul 12 '11, 03:08 PM. Reason: adding fix

  • 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.
    Code:
    x = []
    I also know how to make a normal list.
    Code:
    x = ["d","x","f"]
    I am trying to do the following.
    Code:
    #set amount of elements
    SIZE = 7
    
    array = [SIZE]
    I want the array variable to hold 7 empty elements,...
    See more | Go to post
    Last edited by Noah J; Jul 11 '11, 05:17 PM. Reason: Needed to update the post.
No activity results to display
Show More
Working...