System.out.print里面怎么样能去掉System.out,可以直接使用print或者有什么更好的方法可以向屏幕输出

解决方案 »

  1.   

    "out" is a standard stream.
      

  2.   

    import System的那个包
    之后就可以直接用print了,包名是什么具体忘记了
    不过你可以再程序了里直接写print(“hello world”);
    然后点前面那个叉来添加import语句版本要求1.5以上
      

  3.   


    import static java.lang.System.*;
            
    public class Test {
        public static void main(String[] args) {
            out.println("Hello");
        }  
    }
    这个吗?
    其实没什么意思,混乱。
      

  4.   

    可以自己包装一层,写一些静态的方法,不过过于麻烦了。因为println方法有10来个重载的方法。
      

  5.   

    Systems是java.lang包中的一个类,out是其中的一个静态变量,public的
      

  6.   

    Systems是java.lang包中的一个类,out是其中的一个静态变量,public的
      

  7.   

    public static final PrintStream out    The "standard" output stream. This stream is already open and ready to accept output data. Typically this stream corresponds to display output or another output destination specified by the host environment or user.    For simple stand-alone Java applications, a typical way to write a line of output data is:             System.out.println(data)
                 See the println methods in class PrintStream.    See Also:
            PrintStream.println(), PrintStream.println(boolean), PrintStream.println(char), PrintStream.println(char[]), PrintStream.println(double), PrintStream.println(float), PrintStream.println(int), PrintStream.println(long), PrintStream.println(java.lang.Object), PrintStream.println(java.lang.String)
      

  8.   

    加了System可是out.println("Hello");还是提示错误,认不出out
      

  9.   

    out can not be resolved
      

  10.   

    直接用System.out.println()不好吗?
      

  11.   

    每次都这样好像很麻烦,感觉JAVA的输入输出很麻烦啊,输入好像比输出还要麻烦些..
      

  12.   

    写代码用ide,也不用每一个行都自己输入。比如在Netbeans下,输入sout,然后按tab,自动给你扩展为
    System.out.println();了,很方便。
    输入直接使用命令行参数,或者Scanner,已经很方便了。
    如果从用1.4以及早期的版本的话更郁闷。
      

  13.   

    谢谢输入的话scanner还不错...我看好多例子都用BufferedReader,一大串看起来真麻烦NetBeans没用过,eclipse下面安装什么插件可以达到同样的效果呢
      

  14.   

    System是java.lang中的一个类,这个类中的一个静态对象是out,拥有输出的能力