- 博客(6)
- 收藏
- 关注
转载 命令行运行java程序(javac-java)
首先配置好环境变量JAVA_HOME和Path,在命令行中输入java和javac时不报错; 以简单的HelloWorld程序为例: public class HelloWorld{public static void main(String[] args){System.out.pri...
2017-01-19 12:02:00
132
转载 Java中的getProperty()函数
public class ShowProperties{public static void main(String[] args){System.getProperties().list(System.out);//获取系统所有属性并输出System.out.println(Syste...
2017-01-18 22:48:00
490
转载 Java中的static关键字
当声明一个事物是static时,即使从未创建其所在类的的任何对象,也可以直接调用其static方法或访问其static域。 //静态变量class StaticTest{static int i=15;}StaticTest st1=new StaticTest();StaticT...
2017-01-18 22:15:00
76
转载 Java中printf、print和println的异同
printf:格式化输出(使用指定格式字符串和参数将格式化的字符串写入此输出流的便捷方法)。 print:打印。 println:打印,然后终止该行。 转载于:https...
2017-01-18 20:04:00
89
转载 UML形式的图(Unified Modeling Language,统一建模语言)
类名 数据成员 方法 eg: Light on() off() brighten() dim() 通常,只有类名和公共方法...
2017-01-18 13:47:00
84
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人