After new, change Object to the name of your class. And remember, you have created a 2d array, therefore the left-hand side of your assignment should look like this: entryList[a][b] HTH, Tobias [ April 16, 2004: Message edited by: Tobias Hess ] [ edited to break long line -ds ] [ April 18, 2004: Message edited by: Dirk Schreckmann ]
Accela, I'm not sure what you're trying to do, BUT let me tell what you can't do. You're trying to construct an Object given arguments to a constructor that doesn't exist. I think maybe you're trying to actually put those items in an array instead of an Object constructor (in which case you'll get an exception saying you have an index that is out of bounds). Does that help? If not, let us know what you're actually trying to do with the line: entryList[i] = ... because that is where the problem is.
Well, you've got two errors here. First, you can't create a new Object with those parameters, because the Object constructor takes no parameters. What class of object are you trying to create here? Second, you are trying to put a single Object into your entryList[i] position. Buy you've defined entryList as a 2D array, so entryList[i] really should be an array of objects. entryList[i][j] would be for a single object.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Joined: Apr 11, 2004
Yes, I'm trying to add the contents of the object into a 2d array, how do I fix this?
Joined: May 29, 2003
Or the long way
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Object() in java.lang.Object cannot be applied to..