Search:

Type: Posts; User: Knowledge_Feeds_The_Mind

Search: Search took 0.08 seconds.

  1. Re: Write a class encapsulating the concept of a circle: Help Needed

    I finalized my code, but I cannot run it, the program says that there is no main class?
    "public static void main(int radius, int x, int y) {" I thought that this was my main class....
    Do you know...
  2. Re: Write a class encapsulating the concept of a circle: Help Needed

    So I sat down and reran the entire thing.
    I thought I had it but nope, did not happen :confused:



    public class NewCircle {

    public static void main(int radius, int x, int y) {
    ...
  3. Re: Write a class encapsulating the concept of a circle: Help Needed

    So I reworked the code and now I think I only have to find a way to integrate the second code into the first code






    //First Code

    import java.awt.Point;
  4. Re: Write a class encapsulating the concept of a circle: Help Needed

    I do not think I need to know exactly, put pretty close to it.
    Yes. "A toString method that prints out the location of the circle (the x, y coordinates of
    the Point) and the radius."



    ...
  5. Write a class encapsulating the concept of a circle: Help Needed

    Prompt: Write a class encapsulating the concept of a circle, assuming a circle has the following attributes: a Point representing the center of the circle, and the radius of the circle, and integer....
Results 1 to 5 of 5