File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

referencing an Array

 
Jim Rock
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you have a space between the array index and array name
for example are both the following references legal (assuming the array has been declared and constructed):
x[25] = 1;
x [25] = 1;
 
Rick Rodriguez
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jim,
As I mentioned in your previous post, in your example above, the Java compiler does not care about the spaces you place before the open bracket.
 
Dave Vick
Ranch Hand
Posts: 3244
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jim
Not to be rude, but instead of asking these types of questions you should write a little code and test it. You'll probably get a faster answer and you'll also get more practice that way too..
Dave
 
Jim Rock
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave I was pretty sure I knew the answer. However, my understanding of this bulliten board is that it is for posting questions that have general interest. I think this question was worth having others see.
Originally posted by Dave Vick:
Jim
Not to be rude, but instead of asking these types of questions you should write a little code and test it. You'll probably get a faster answer and you'll also get more practice that way too..
Dave

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic