How to read user input from keyboard in Java

Background This article demonstrates how to read input supplied by user via keyboard to the console. Software Environment Windows 7 Professional SP1 Eclipse – Kepler Release Java 1.7 (1.7.0_67 – Windows x86) The Codes

Sample Output Related posts: How… Continue Reading


How to configure Log4j to log to console

Okay, you wrote a lot of Log4j debug statements all over your codebase but do not want them to appear in QA and/or Production environment. How to do that? You need to configure Log4j by modifying log4j.xml. You could also use log4j.properties in place of log4j.xml but some advanced settings can only be set using the latter. Might as well use something that offers greater benefits. Continue Reading