Definiendo variables en Groovy

def (int x, float y, String z, Object obj) = [12,45.9f, "Hola, mundo", new java.util.Date()] println x println y println z println obj
Ejemplo de como definir multivariables en Groovy

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.