how to check for java version on windows 10 code example Example: how to check which java version i have java -version