JAVA (First step: Git Bush edition)

For me, who was a beginner, I felt that it was a fairly precise language. I just stumbled, but as I got used to it, my understanding seemed to deepen.

Before that, I often use discord for exchanging codes and files.

It seems to be convenient when developing with a large number of people or educational development. I feel good with Slack.

Check the location first

pwd /*Check the current location display*/

To prevent garbled characters

vi ~/.bashrc 

Paste this

  alias javac='javac -J-Dfile.encoding=UTF-8'
   alias java='java -Duser.language=ja -Dfile.encoding=UTF-8'
   sc(){
   start chrome $1
   }

Exit and save


 ctrl +from c:wq 

Move to any location

cd folder name//cd test/Test2 and time saving movement are also possible

Create a folder

mkdir folder name

Create and open a file with vim in the moved folder

vi folder name.java

Try to describe

public class Main{
  public static main(String[] arrgs){
     System.out.println("Hello World!");
  } 
}

save

ctrl +Exit insert mode with c:wq

compile

$ javac Main.java

compile

$ java Main
Hello World! //Is output, ok

That's all

Recommended Posts

JAVA (First step: Git Bush edition)
I first touched Java ②
I first touched Java ③
I first touched Java ④
First gradle build (Java)
I first touched Java
Swift Combine First step
Modern Java Development Guide (2018 Edition)
Personal comment criteria [Java edition]
First Java development in Eclipse