Shell Count the numbers of lines of code

Exclude empty & Comment lines.

find . -name “*.java”|xargs cat|grep -v -e ^$ -e ^\s*\/\/.*$|wc -l