Results 1 to 3 of 3
Thread: Some Questions
- 02-25-2009, 03:30 PM #1
Senior Member
- Join Date
- Jan 2009
- Posts
- 119
- Rep Power
- 0
-
You must do two initializations here:
1) Initialize the array
2) Initialize the contents of the array, the items held within the array:
Your code doesn't do point 1: it doesn't initialize the array first.Java Code:Fubar[] fubars = new Fubar[10]; // this initializes the array for (int i = 0; i < fubars.length; i++) { fubars[i] = new Fubar(); // this initializes the array items }
- 02-25-2009, 04:01 PM #3
Senior Member
- Join Date
- Jan 2009
- Posts
- 119
- Rep Power
- 0
Similar Threads
-
questions for 1yr exp
By rahaman.athiq in forum Java ServletReplies: 2Last Post: 11-26-2008, 01:13 AM -
I have Questions -_-
By ChazZeromus in forum New To JavaReplies: 5Last Post: 09-13-2008, 08:08 PM -
Questions About JSP?
By mtz1406 in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 08-19-2008, 07:56 PM -
questions
By Gilgamesh in forum New To JavaReplies: 3Last Post: 11-27-2007, 11:18 PM -
3 Questions
By hiranya in forum AWT / SwingReplies: 4Last Post: 11-14-2007, 04:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks