Java beginner's stumbling block [memo writing]

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

Wrong

java\demo1\Hello.java


package java.demo1;

public class Hello {
	public static void main(String[] args) {
		System.out.println("Hello");
	}
}

Positive

demojava\demo1\Hello.java


package demojava.demo1;

public class Hello {
	public static void main(String[] args) {
		System.out.println("Hello");
	}
}

Recommended Posts

Java beginner's stumbling block [memo writing]
Java memo
java anything memo
Java Silver memo
java, maven memo
Java SE 7 memo
java anything memo 2
Java specification memo
Java pattern memo
Java development environment memo
Spring boot memo writing (1)
java basic knowledge memo
Java learning memo (method)
Java Kuche Day memo
[Java ~ Method ~] Study memo (5)
java se 8 programmer Ⅰ memo
Java paid private memo
List of beginners (List) memo
[Java ~ Array ~] Study memo 4
Java learning memo (basic)
java lambda expression memo
(Memo) Java for statement
Java lambda expression [memo]
Java learning memo (interface)
[Java] Implicit inheritance memo
Java learning memo (inheritance)
java competitive programming memo
[Memo] Java Linked List
Java (WebSphere Application Server) memo [1]
[Java] Variable name naming memo
Java memo (standard class) substring
Java learning memo (data type)
[Java] Beginner's understanding of Servlet-②
Java debug execution [for Java beginners]
[Java] Basic statement for beginners
Java memo (standard class) length
[Java] Beginner's understanding of Servlet-①
Java Silver Study Method Memo
[Java ~ Boolean value ~] Study memo (2)
Create a java method [Memo] [java11]
Java Silver exam preparation memo
Object-oriented summary by beginners (Java)
Java learning memo (logical operator)
Java learning memo (abstract class)
[Java] Date Related Term Memo
Java study memo 2 with Progate
Java for beginners, data hiding
[Java] Tips for writing source
Java beginners read Hello World
Java application for beginners: stream
What are Java metrics? _Memo_20200818
Java HashMap, entrySet [Personal memo]