def cat = "meow"def one = 1
println "$cat >> "+cat.getClass()
println "actual value >>> "+cat
println "upper case >>> "+cat.toUpperCase()
println "-------------------"
println "actual value >>> "+one
println "$one >> "+one.getClass()
println "-------------------"
one = "one"
println "$one >> "+one.getClass()
println "actual value >>> "+one
println "upper case >>> "+one.toUpperCase()
No comments:
Post a Comment