Thinking in JAVA第四版源代码

源代码在线查看: print.java

软件大小: 543 K
上传用户: wanglp094
关键词: Thinking JAVA in 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				//: net/mindview/util/Print.java
				// Print methods that can be used without
				// qualifiers, using Java SE5 static imports:
				package net.mindview.util;
				import java.io.*;
				
				public class Print {
				  // Print with a newline:
				  public static void print(Object obj) {
				    System.out.println(obj);
				  }
				  // Print a newline by itself:
				  public static void print() {
				    System.out.println();
				  }
				  // Print with no line break:
				  public static void printnb(Object obj) {
				    System.out.print(obj);
				  }
				  // The new Java SE5 printf() (from C):
				  public static PrintStream
				  printf(String format, Object... args) {
				    return System.out.printf(format, args);
				  }
				} ///:~
							

相关资源