I am tring to import the package as I am tring to learn the java. I am facing issue while importing the class from different package.
public class Abhi{
public void fun(){
System.out.println("Fun function from Abhi class");
}
}```
```package two;
import one.Abhi;
public class World{
public static void main(String []args){
System.out.println("World Class Start");
World obj = new World();
obj.fun();
}
}```
I am facing the issue while I am tring to import java package class which is a public class as well as public function from the package giving me the error when I am compiling it in VS code. Which I don't understand the reason because I believe code is correct. Please help
[error image ](https://i.sstatic.net/wifROwdY.png)
New contributor
Abhi Upadhyay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.