摘要: 1 package hahaa; 2 3 import java.io.FileNotFoundException; 4 import java.io.PrintStream; 5 6 public class ha { 7 public static void main(String... 阅读全文
posted @ 2015-06-06 20:54 ItFree 阅读(395) 评论(0) 推荐(0)
摘要: Scanner 类封装了输入流对象,并使用nextLine()方法输入流中获取用户输入的整行文本字符package hahaa;import java.util.Scanner;public class ha { public static void main (String[] args) { ... 阅读全文
posted @ 2015-06-06 20:26 ItFree 阅读(1148) 评论(0) 推荐(0)
摘要: err控制台红色字体显示,out则是黑色字体显示。 1 package haha; 2 3 public class ha { 4 public static void main (String[] args) { 5 System.err.println("标准的错误信息的输出流输出了"); ... 阅读全文
posted @ 2015-06-06 20:03 ItFree 阅读(140) 评论(0) 推荐(0)