我一直在使用 eclipse 学习 java,但是当我输入 sysout 时,它通常显示 println,但现在它显示了
private void sysout()
什么时候显示
System.out.println();
有人知道怎么回事吗?
最佳答案
在Eclipse中使用补全是syso
, Ctrl+Space。这是上下文相关的,需要在 System.out.println
调用有效的地方使用(即在方法、构造函数、初始化程序 block 或 lambda 中)
关于java - 为什么 sysout 不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30901053/