Adding java to the package name will result in an error. Speaking of course, it may be natural. See below. https://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=35660&forum=12
java\demo1\Hello.java
package java.demo1;
public class Hello {
public static void main(String[] args) {
System.out.println("Hello");
}
}
demojava\demo1\Hello.java
package demojava.demo1;
public class Hello {
public static void main(String[] args) {
System.out.println("Hello");
}
}
Recommended Posts