上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 28 下一页
摘要: import java.util.Date;public class DateDemo{ public static void main(String[] args){ //初始化Date对象 Date date = new Date(); //使用toString() 函数显示日期时间 Syste 阅读全文
posted @ 2018-10-19 18:23 Alanf 阅读(230) 评论(0) 推荐(0) 编辑
摘要: public class PrimitiveTypeTest{ public static void main(String[] args){ //byte System.out.println("基本类型:byte 二进制位数:" + Byte.SIZE); System.out.println( 阅读全文
posted @ 2018-10-19 18:22 Alanf 阅读(229) 评论(0) 推荐(0) 编辑
摘要: public class Test{ public void pupAge(){ int age = 0; age = age + 7; System.out.println("Puppy age is :" + age); } public static void main(String args 阅读全文
posted @ 2018-10-19 18:22 Alanf 阅读(109) 评论(0) 推荐(0) 编辑
摘要: public class className{ //...} private boolean myFlag;static final double weeks = 9.5;protected static final int BOXWIDTH = 42;public static void main 阅读全文
posted @ 2018-10-19 18:22 Alanf 阅读(142) 评论(0) 推荐(0) 编辑
摘要: public class Test{ public static void main(String args[]){ int a = 10; int b = 20; int c = 25; int d = 25; System.out.println("a+b " +(a+b)); System.o 阅读全文
posted @ 2018-10-19 18:22 Alanf 阅读(95) 评论(0) 推荐(0) 编辑
摘要: while(布尔表达式){ //循环内容} public class Test{ public static void main(String args[]){ int x = 10; while(x<20){ System.out.println("value of x : " + x); x++ 阅读全文
posted @ 2018-10-19 18:22 Alanf 阅读(94) 评论(0) 推荐(0) 编辑
摘要: public class Test{ public static void main(String args[]){ int x = 10; if(x<20){ System.out .println("这就是if语句"); } }} 这是 if 语句 public class Test{ publ 阅读全文
posted @ 2018-10-19 18:22 Alanf 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Java 教程 Java 是由Sun Microsystems公司于1995年5月推出的高级程序设计语言。Java可运行于多个平台,如Windows, Mac OS,及其他多种UNIX版本的系统。本教程通过简单的实例将让大家更好的了解JAVA编程语言。 第一个java程序 hello world p 阅读全文
posted @ 2018-10-19 18:21 Alanf 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 介绍如何搭建Java开发环境推荐:在Cloud Studio中运行Java程序 Java是一种跨平台的编程语言,想要让你的计算机能够运行Java程序那么就需要安装JRE,而想要开发Java程序,那么就需要安装JDK。这对新手来说可能有些复杂、安装配置的过程中可能会遇到一些问题。对于老手来说,有些时候 阅读全文
posted @ 2018-10-19 18:21 Alanf 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Java基础语法 一个Java程序可以认为是一系列对象的集合,而这些对象通过调用彼此的方法来协同工作。下面简要介绍下类、对象、方法和实例变量的概念。 对象:对象是类的一个实例,有状态和行为。例如,一条狗是一个对象,它的状态有:颜色、名字、品种;行为有:摇尾巴、叫、吃等。类:类是一个模板,它描述一类对 阅读全文
posted @ 2018-10-19 18:21 Alanf 阅读(107) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 28 下一页