当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Why doesn't sysout work?

问题描述:

I've been using eclipse for a while learning java but when I type sysout it generally shows println, but now its showing

private void sysout()

when it's supposed to show

System.out.println();

anybody know what's wrong?

网友答案:

The completion to use in Eclipse is syso, Ctrl+Space. This is context-sensitive and needs to be used in a place where a System.out.println call is valid (i.e. in a method, constructor, initializer block, or lambda)

网友答案:

Type syso then ctrl-space for the shortcut

网友答案:

Type "sysout" or "sys" and press ctrl+space. Suggesation list will show where you will find sysout -> System.out.println(). Select that. If your write sysout and press ctrl+space then it will directly write System.out.println().

分享给朋友:
您可能感兴趣的文章:
随机阅读: