fork download
  1. def name1 = ' \"Hello\" world'
  2. def name2 = 'Hello\
  3. testing.\
  4. world'
  5.  
  6. def c = 10
  7.  
  8. println "$(c)"
  9.  
  10. def ch = [ 't','e','s','t' ] as char[]
  11.  
  12. if(String.valueOf(ch) == "test")
  13. {
  14. println " Cequal "
  15. }
  16.  
  17.  
  18. def test = "testing"
  19.  
  20. println test - "est"
  21.  
  22. if("hi $name2" == "hi Hello world")
  23. {
  24. println "equal"
  25. }
  26. else
  27. {
  28. println "not equal" + name1 + " " + name2
  29. }
Runtime error #stdin #stdout 0.62s 217344KB
stdin
Standard input is empty
stdout
Standard output is empty