There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Originally posted by Jerrard Maniece:
I was wondering if anyone could help me out on my wheel project. I am kind of new at Java and needed some help. This project is a wheel and has to have 5 spokes. So far I have.....
class Spoke { }
class Wheel
{
Spoke[] spokes = new Spoke[5];
}
any help is accepted. Thanks again.
Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
Originally posted by Jerrard Maniece:
^^Thanks. I added what you pasted, but it's saying "Return Type Method Is Missing". It's saying that at Wheel(). I know wheel is a method, but not sure why that error is coming up.
Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
Originally posted by Jerrard Maniece:
^^^, Ya, I just want the drawing of the wheel to show up in the applet.
Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
Originally posted by Jerrard Maniece:
I got another question. I was wondering do they have a method for a Circle. I see one for Polygon, Arc, Line, Rec, Oval, Round Rect....anything for a Circle?
Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
Originally posted by Jerrard Maniece:
Ok! Do I just play with the numbers to get it to look like a circle???
Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein