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.
Please advice on where can I find the lib in order to use the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Logging libraries
You could use logging libraries instead of re-inventing the wheel. Log4j for instance will provide methods for different messages like
info(),warn()anderror().Homemade methods
or simply make a
printlnmethod of your own and call it:IDE keyboard shortcuts
IntelliJ IDEA and NetBeans:
you type
soutthen press TAB, and it typesSystem.out.println()for you, with the cursor in the right place.Eclipse:
Type
sysothen press CTRL + SPACE.Other
Find a "snippets" plugin for your favorite text editor/IDE
Explore JVM languages
Scala
Groovy
Jython
JRuby
Clojure
Rhino
Kotlin