Andorid--java0

java code:

public class Hello{

    public static void main(String argv[]) {
        System.out.println("Hello ,Android java");
    }   
}

--------------------------------------------------

book@book-virtual-machine:/work/java$ ls
      Hello.java
      book@book-virtual-machine:/work/java$ javac Hello.java
      book@book-virtual-machine:/work/java$ ls
      Hello.class  Hello.java
      book@book-virtual-machine:/work/java$ java Hello
      Hello ,Android java

代码编译:javac Hello.java

代码执行:java Hello

你可能感兴趣的:(Andorid--java0)