Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Trouble Processing Arrays
Trouble Processing Arrays [message #782564] Tue, 24 January 2012 00:26 Go to next message
John Park is currently offline John ParkFriend
Messages: 1
Registered: January 2012
Junior Member
I made this simple array in eclipse helios and indigo:

public class ForFun
public static void main(String[] args)
int [] array = new int ;
for (int i = 0; i < 10; i++)
array [i] += i;


and the output it gives me is: [I@4fe5e2c3

I'd appreciate any help!
Re: Trouble Processing Arrays [message #782597 is a reply to message #782564] Tue, 24 January 2012 02:40 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4072
Registered: July 2009
Senior Member

There's nothing wrong as the default toString() on an array is not one that prints its contents. You might want to find a more general Java forum since this one is really intended for issues specific to Eclipse.

I recommend you try stepping through it with the debugger. It is often educational.

Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:PyDev - several versions of the same package
Next Topic:alan here
Goto Forum:

Current Time: Fri Jun 25 08:12:58 GMT 2021

Powered by FUDForum. Page generated in 0.03088 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top