摘要:
例子1: 1 package cn.itcast.day1; 2 3 public class StaticImport { 4 public static void main(String[] args) 5 { 6 int x = 1; 7 System.out.println("Hello world!"); 8 System.out.println(Math.max(3, 4)); 9 System.out.println(Math.abs(3 - 23));10 }11 }这里如果调用每个类的静... 阅读全文
posted @ 2013-05-26 16:17
robotke1
阅读(193)
评论(0)
推荐(0)
摘要:
package cn.itcast.day1;//import static java.lang.Math.max;//import static java.lang.Math.*;public class StaticImport { public static void main(String[] args) { int x = 1; System.out.println("Hello world!"); System.out.println(Math.max(3, 4)); System.out.println(Math... 阅读全文
posted @ 2013-05-26 16:14
robotke1
阅读(1064)
评论(0)
推荐(0)
摘要:
import java.io.*;import java.util.Date;public class Lesson2{ public static void main(String[] args) { File f = new File("1.txt"); if (f.exists()) { f.delete(); } else { try { f.createNewFile(); ... 阅读全文
posted @ 2013-05-26 11:45
robotke1
阅读(128)
评论(0)
推荐(0)

浙公网安备 33010602011771号