skip to main | skip to sidebar

Dave Cramer

Wednesday, February 23, 2011

Groovy string concatenation

Groovy string concatenation weirdness.

String foo = "foo"
+ "blat"

Throws an error, for some reason you have to write it as

String foo = "foo" +
"blat"

So that the + sign does not start a new line.


Posted by Dave Cramer at 9:36 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2024 (1)
    • ►  December (1)
  • ►  2022 (1)
    • ►  February (1)
  • ►  2018 (2)
    • ►  January (2)
  • ►  2017 (5)
    • ►  August (1)
    • ►  May (1)
    • ►  April (2)
    • ►  March (1)
  • ►  2015 (2)
    • ►  September (1)
    • ►  August (1)
  • ►  2014 (5)
    • ►  July (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (2)
  • ►  2013 (1)
    • ►  April (1)
  • ►  2012 (1)
    • ►  November (1)
  • ▼  2011 (6)
    • ►  October (1)
    • ►  March (1)
    • ▼  February (4)
      • Headliner done
      • M3 Track car
      • Groovy string concatenation
      • Back to blogging
  • ►  2008 (1)
    • ►  August (1)

About Me

Dave Cramer
View my complete profile