Java program question

mooo

thecyberninja
Joined
Jan 6, 2004
Messages
886
#1
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
 

Geffy

OSNN Veteran Addict
Joined
Mar 18, 2002
Messages
7,805
#2
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
 

mooo

thecyberninja
Joined
Jan 6, 2004
Messages
886
#4
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 :)
 

mooo

thecyberninja
Joined
Jan 6, 2004
Messages
886
#9
good luck :)
if you learned on C++ its usually better and the programs are a lot cleaner. But i still love my C :)
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
62,028
Messages
673,537
Members
89,038
Latest member
Samhicks