Skip to main content



      Home
Home » Newcomers » Newcomers » Trouble Processing Arrays
Trouble Processing Arrays [message #782564] Mon, 23 January 2012 19:26 Go to next message
Eclipse UserFriend
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;
}
System.out.println(array);
}

}

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] Mon, 23 January 2012 21:40 Go to previous message
Eclipse UserFriend
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.
Previous Topic:PyDev - several versions of the same package
Next Topic:alan here
Goto Forum:
  


Current Time: Sat Jul 05 05:47:51 EDT 2025

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

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

Back to the top