Java program question

Discussion in 'Web Design & Coding' started by mooo, Jan 24, 2004.

  1. mooo

    mooo thecyberninja

    Messages:
    886
    Location:
    earth
    I amworking on my lab due next thursday and i am stuck on what to do, i am trying to find the circumference and area of a elipse. I have the circum.java right it looks, it compiles and everything, but on the main i am trying to display circum but it doesn't compile

    Main.java:6: cannot resolve symbol
    symbol : method displayIt ()
    location: class Circum
    obj1.displayIt();

    is the error. I put the project on my sites, if someone can look at it would make me so happy. :)

    http://www.thecyberninja.com/project2.3.rar
     
  2. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    I'll give it a shot in a second as I cant seem to download it in BSD so I have to boot into windows
     
  3. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    where is the method displayIt() defined??
     
  4. mooo

    mooo thecyberninja

    Messages:
    886
    Location:
    earth
    oh i see that now :) thanks a lot, now i gotta figure out why it isn't inputing numbers, just using 0
    thanks again, glad you pointed that out, never woulda have realized that

    90% done :) , just realizing in my Main.java i was only doing the displayIt object, so added the other 2 above it. still outputting a 0, but its letting me input so i am hella happy

    100% complete!!! i took out all the other stuff like displayIt, just made it body, it works fine now. going to look into to see how i import area and circum into a display it without reset back to 0. i think that was the problem :)
     
  5. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    good stuff
     
  6. rushm001

    rushm001 In the beginning...... Political User

    Messages:
    3,480
    Location:
    Norfolk, UK
    I'm glad somebody knows, I know nothing about Java!
     
  7. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Geffy is gonna teach me :p
     
  8. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    Once I have a good understanding of it ;)
     
  9. mooo

    mooo thecyberninja

    Messages:
    886
    Location:
    earth
    good luck :)
    if you learned on C++ its usually better and the programs are a lot cleaner. But i still love my C :)