File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes declaring arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "declaring arrays" Watch "declaring arrays" New topic
Author

declaring arrays

Jim Rock
Ranch Hand

Joined: Mar 20, 2001
Posts: 39
can you have a space between your brackets [] and array name
for example are the following two declarations the same
int[] x new int[25];
int [] x new int [25];
Rick Rodriguez
Ranch Hand

Joined: Jun 02, 2001
Posts: 44
Actually, the Java compiler does not care about the spaces. Any of the declarations/initializations in your post will compile without any errors.
I tried it myself.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: declaring arrays
 
Similar Threads
werid output for For loop
Nested for loop
Statements in classes
How to get a base class subobject
What is 5++ *5 =?