Your SlideShare is downloading. ×
「プログラミングGroovy」Groovyってなんだろ?編
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

「プログラミングGroovy」Groovyってなんだろ?編

3,280
views

Published on

2011/05/28 レッツゴーデベロッパー2011@仙台

2011/05/28 レッツゴーデベロッパー2011@仙台

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
3,280
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Java
  • 2. ‣‣‣‣ Java
  • 3. ‣‣‣
  • 4. Java
  • 5. 2011 2010 2009 2008 2007 2006 2005 20042003
  • 6.
  • 7. // Hello.javapublic class Hello { public static void main(String[] args) { System.out.println("Hello, World!"); }}
  • 8. // Hello.groovypublic class Hello { public static void main(String[] args) { System.out.println("Hello, World!"); }}
  • 9. // Hello.groovyprintln "Hello, World!"
  • 10. class Dog { void cry() { println "Bowwow!" }}class Cat { void cry() { println "Meow!" }}void kick(obj) { obj.cry() }kick(new Dog())kick(new Cat())
  • 11. String.metaClass.shout = { println delegate.toUpperCase() + "!" }"Let’s go developers".shout()
  • 12. url = "http://dist.groovy.codehaus.org/distributions/groovy-binary-1.8.0.zip"tmpfile = File.createTempFile("ant", ".zip")ant = new AntBuilder()ant.get(src:url, dest:tmpfile)ant.unzip(src:tmpfile, dest:".")
  • 13. @Grab(org.twitter4j:twitter4j-core:[2.2,))import twitter4j.*twitter = new TwitterFactory().instancetwitter.updateStatus " #5000dai"
  • 14. Java