Reputation: 31
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?
Upvotes: 1
Views: 313
Reputation: 1408
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().
Upvotes: 0
Reputation: 41281
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)
Upvotes: 3