• Post Reply Bookmark Topic Watch Topic
  • New Topic

could anyone tell me why this is legal?...  RSS feed

 
f. nikita thomas
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found while battling eclipse's 'suggestion's



and if possible a canonical reference source.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class nRobot has an inner class called goForward, and this is the normal Java syntax to create an instance of that inner class.

See Sun's Java Tutorial: Nested Classes
 
f. nikita thomas
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my concern was with the new keyword used in conjunction with the member access operator. i have been using inner classes for a little while now, which my instructor just loves. but i have never seen this before. thanks for this, new sledgehammer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!