Wesley Luh
Wesley Luh

Reputation: 31

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?

Upvotes: 1

Views: 313

Answers (3)

Saqib Rezwan
Saqib Rezwan

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

Brandon Ling
Brandon Ling

Reputation: 3919

Type syso then ctrl-space for the shortcut

Upvotes: 1

nanofarad
nanofarad

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

Related Questions