Я пытаюсь импортировать пакет, пытаясь изучить java. У меня возникла проблема при импорте класса из другого пакета.
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)
Подробнее здесь: https://stackoverflow.com/questions/787 ... port-issue