Use one command line to statistic the line of the code
/cygdrive/c/cygwin/bin/find ./ -iname "*.java" -exec cat {} +|grep -E -v "^$|import"|wc -l