November 25, 2016.
I feel very depressed that i don't even a date.From this morning,i want to listen to english every day,but this morning i can'n keep up with the speed of reanding,so i feel evry bad.But i know,a day has no effect,but always insisted that there willbe a harvest.
NOTES
Liunx设置jdk的环境变量
vi /etc/profile
添加
export JAVA_HOME=/home/zongxing/jdk8/jdk1.8.0_60
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Windows设置jdk的环境变量
进入电脑属性的高级属性,直接把jdk的bin目录路径加到系统环境变量的path末尾
第一个Java程序
import java.util.Scanner;
public class HelloWorld
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String in = sc.nextLine();
System.out.println(in);
}
}
This is notes, is also a life, and grow。