As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
newversion = versionService.getCurrentVersion(nodeRef).getVersionLabel();
Je vous renvoie (une fois de plus) aux bases du langage Java, et à Google. Votre problème n'est en rien à Alfresco, et un minimum de recherche vous apportera rapidement une des nombreuses possibilités.