Advertisement
fatimacasau

Groovy Dinamic Typing 2

Feb 5th, 2012
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.16 KB | None | 0 0
  1. def sumar(a,b,c){
  2. "La suma de a+b+c es: ${a+b+c}"
  3. }
  4.  
  5. println sumar(1,2,3)
  6. println sumar("Hola, ", "qué ", "tal?")
  7. println sumar([1,2,3],[4,5,6],[7,8,9])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement