check which java version is used by idea code example Example: how to check which java version i have java -version