The Java Primer passed the blockage

Clogged with introductory book Then, after one night, I rewrote it from the beginning according to the book "Practical Java Gamenics Easy Master Kindle Edition". I was able to compile.

Install split-diff on Atom and compare with the file created the day before. There were no typographical errors. Just in case, I matched the half-width spaces and it was compiled. The folder structure is New) D: \ Study \ edu \ rpg \ weapon Old) D: \ Study \ temp \ edu \ rpg \ weapon

The compile command is New) D: \ Study> javac -encoding UTF-8 edu \ rpg \ weapon \ Weapon.java New) D: \ Study> javac -encoding UTF-8 edu \ rpg \ weapon \ ShowWeapon.java New) D: \ Study> java edu.rpg.weapon.ShowWeapon New) Output) Claymore

Old) D: \ Study \ temp> javac -encoding UTF-8 edu \ rpg \ weapon \ Weapon.java Old) D: \ Study \ temp> javac -encoding UTF-8 edu \ rpg \ weapon \ ShowWeapon.java Old) D: \ Study \ temp> java edu.rpg.weapon.ShowWeapon Old) Output) Claymore

As far as I can understand, there is no problem in arranging the Class file and declaring the package.

The half-width space is the space inside the super parenthesis of "super (WeaponType.SWORD," Claymore ");" in Claymore.java, and it could be compiled even if the space was added as a trial.

I learned to sleep overnight if I got stuck.

Also, as a division, New York may not be good anymore.

Recommended Posts

The Java Primer passed the blockage
Passed Java SE8 Silver
java bronze silver passed
[Experience] Passed Java SE 8 Silver
[Java] I implemented the combination.
Java Primer Series (Type Conversion)
Java is the 5th day
I studied the constructor (java)
Input to the Java console
I passed the Java test level 2 so I will leave a note
I passed the Oracle Java Bronze, so I summarized the outline of the exam.
Access the network interface in Java
[Java] Delete the elements of List
Guess the character code in Java
[java8] To understand the Stream API
Compile Java at the command prompt
Java Primer Series (Variables and Types)
Specify the java location in eclipse.ini
Where is the Java LocalDateTime.now () timezone?
Java comparison using the compareTo () method
Unzip the zip file in Java
About the current development environment (Java 8)
Consideration on the 2017 Java Persistence Framework (1)
I tried the Java framework "Quarkus"
Follow the link with Selenium (Java)
Welcome to the Java Library Swamp! !!
Parsing the COTOHA API in Java
Get stuck in a Java primer
The road from JavaScript to Java
The origin of Java lambda expressions
Call the super method in Java
[Java] How to retrieve the parameters passed from html on the server side