How to make System.out.println() shorter

后端 未结 12 1018
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 07:10

Please advice on where can I find the lib in order to use the shorter expression of System.out.println() and where should I place that lib.

12条回答
  •  半阙折子戏
    2020-12-04 07:37

    Java is a verbose language.

    If you are only 3 days in, and this is already bothering you, maybe you'd be better off learning a different language like Scala:

    scala> println("Hello World")
    Hello World
    

    In a loose sense, this would qualify as using a "library" to enable shorter expressions ;)

提交回复
热议问题