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...
Type: Posts; User: Knowledge_Feeds_The_Mind
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...
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) {
...
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;
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."
...
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....