压缩包内是近180多个针对Java初学者编写的简单实例

源代码在线查看: example.java

软件大小: 234 K
上传用户: zhang87874833
关键词: Java 180 初学者 编写
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*
				   Here is another short example.
				   Call this file "Example.java".
				*/
				class Example {
				  public static void main(String args[]) {
				    int num; // this declares a variable called num
				    num = 100; // this assigns num the value 100
				    System.out.println("This is num: " + num);
				    num = num * 2;
				    System.out.print("The value of num * 2 is ");
				    System.out.println(num);
				  }
				}
							

相关资源