Expand|Select|Wrap|Line Numbers
- // TestCircle.java
- package testcircle;
- public class TestCircle {
- public static void main(String[] args) {
- //Circle myCircle = new Circle();
- }
- }
Expand|Select|Wrap|Line Numbers
- // Circle.java
- public class Circle {
- int radius;
- // constructor
- Circle(){
- }
- }
But when I un-comment the line:
Expand|Select|Wrap|Line Numbers
- //Circle myCircle = new Circle();
Expand|Select|Wrap|Line Numbers
- Compiling 2 source files to C:\Users\JohannFu\Documents\NetBeansProjects\TestCircle\build\classes
- C:\Users\JohannFu\Documents\NetBeansProjects\TestCircle\src\testcircle\TestCircle.java:6: cannot find symbol
- symbol : class Circle
- location: class testcircle.TestCircle
- Circle myCircle = new Circle();
- C:\Users\JohannFu\Documents\NetBeansProjects\TestCircle\src\testcircle\TestCircle.java:6: cannot find symbol
- symbol : class Circle
- location: class testcircle.TestCircle
- Circle myCircle = new Circle();
- 2 errors
What am I doing wrong? Thanks for any help!