Do you mean how long it will take because you need the value in the next line like this:
then the answer is simple: Java will not execute the next line while the line before is not processed.
If you mean how much runtime it will take:
It's just a addition and it'll not take much runtime.
But better use this:
in this cases Java only needs to call the value x one time, not two times like in your case