Specifications aren't tied to any specific programming language - you're outlining how the algorithm should work, not the implementation.
(You can write Java code and invoke it during model-checking if you really need to, but I haven't come across any situation where it's actually necessary.)