Groovy web console

subscribe to the feed Subscribe
to this
site

AlanV Was Here

Published 1 month ago by alanvargas
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
/*Prepare for a groovy coding exercise in
 Strings and GStrings
 Reference: http://mrhaki.blogspot.com/2009/08/groovy-goodness-string-strings-strings.html

 Goal: Create a print statement for the following sentence
 The network share drive used for IN Cell images has grown so large that the nightly job to index images for visibility in HCS Explorer had started running for up to 72 hours.
 Instructions: Use only the variables provided in the script
*/
instrument='IN Cell'
software='HCS Explorer'
t=[12,24,48,72]

println "The network share drive used for $instrument images has grown so large that the nightly job to index images for visibility in $software had started running for up to ${t[3]} hours."

name="Alan Vargas"
age=26
sum=[1,34,22]
println "This is a test ma amigow, my name is: $name and my age is: $age, the total sum of all numbers is: ${sum[1]+sum[2]}"
println """
        <html>
            <head>
            </head>
                    <body>
"""