Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
urgent help on package
Posted by siva on December 19, 2000 at 12:02 AM
There are two files This is first file pacakge package1; public class Box { public Box(int a, int b){ int len = a; int wid = b; } } I stored this file in package2 directry Then next file is package package2; public class Test { Box box= new Box(2,4); } I stored this also in package2 directry. Then I compile first one no error message.But when compiling second one the error message is "class package2.Box not found" I couln't find the reason. If you know please tell me Thank you
Replies:
- package R.VENKATASUBRAMANIAN December 22, 2000 at 6:26 AM
(0)
- package Reply Pritpal Singh December 20, 2000 at 2:39 AM
(2)
- Thankyou siva December 20, 2000 at 5:11 AM
(0)
- Thankyou siva December 20, 2000 at 5:09 AM
(0)
- A typo Kishori Sharan December 19, 2000 at 9:08 AM
(5)
- Thank you siva December 20, 2000 at 5:11 AM
(3)
- Thank you siva December 20, 2000 at 5:08 AM
(0)
|