Cannot find Symobl why?
Hi,
I have one problem.
When I create any project using Textpad or JCreator and if I am using packages when I create object of another class which is in same package then I get error thatcannot find symbol
why this happens?
consider this
package demo;
import java.io.*;
publicclass Two
{
public Two()
{
}
public String getTwo()
{
return"2";
}
}
//this is a Simple class
package demo;
import java.io.*;
publicclass One
{
publicstaticvoid main(String args[])
{
Two t;
}
}
this is the class in the same package in which I am creating the object ofTwo class.
But when I try to compile One.java file then error comescannot find symbol : Two t;

