Java program question

mooo

thecyberninja
Joined
6 Jan 2004
Messages
886
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
18 Mar 2002
Messages
7,805
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
6 Jan 2004
Messages
886
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 :)
 

rushm001

In the beginning......
Political Access
Joined
21 Sep 2002
Messages
3,484
I'm glad somebody knows, I know nothing about Java!
 

mooo

thecyberninja
Joined
6 Jan 2004
Messages
886
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 profile posts

Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?

Forum statistics

Threads
62,007
Messages
673,466
Members
5,598
Latest member
Larry Chris