I'm studying Java with Progate, so I wanted to make it myself and run it, so I tried it somehow. I referred to the following article https://qiita.com/stupid_student2/items/3e8ffeb33a73ef065a40
Use macOS Mojave The file was created with Atom
Main.java
class Main{
public static void main( String[] args ){
System.out.println( "Hello World!" );
}
}
cd desktop/java
javac Main.java
→ "Main.Class" is generated
java Main
→ "Hello World!" Has come out!
Recommended Posts