Results 1 to 3 of 3
Thread: Project Help
- 04-28-2010, 05:03 AM #1
Member
- Join Date
- Apr 2010
- Posts
- 2
- Rep Power
- 0
Project Help
Here is what i need to do I have done i. and ii. and iii.
iv. I do not understand how to set a 2d boolean array to a new char array
b.should call the Model’s constructor and pass it the
String array. The Model’s constructor should
i. create a 2D char array from the 1D String array
(Hint: you can use String’s toCharArray())
ii. set its own instance variable of type 2D char array
to this newly created array.
iii. create a 2D boolean array with the same sizes as
that of the 2D char array.
iv. set its own instance variable of type 2D boolean
array to this newly created array.
-
Can you provide more details and perhaps some code?
Much luck
edit: also, you'll likely want to acknowledge and thank moon for his help in your previous thread.
- 04-28-2010, 05:20 AM #3
Senior Member
- Join Date
- Feb 2010
- Location
- Ljubljana, Slovenia
- Posts
- 470
- Rep Power
- 4
Well, the assignment doesn't say you need to "set the boolean array to the char array", frankly, I don't even know what that would mean. The text just said to create a boolean 2d array that is the same size as the char array. If you looked through the code snipped I posted in your other thread, you should have seen that I initialized the char array using the string arrays length field. Just do the same.
Oh, and Fubarable, you're too kind :DEver seen a dog chase its tail? Now that's an infinite loop.
Similar Threads
-
Project
By ADARSH in forum New To JavaReplies: 10Last Post: 10-08-2009, 03:27 PM -
my project::::
By balajimca in forum CLDC and MIDPReplies: 2Last Post: 08-07-2009, 02:52 PM -
open existing project project ..
By itaipee in forum EclipseReplies: 1Last Post: 12-28-2008, 08:12 PM -
First Project Need Big Help
By earl in forum New To JavaReplies: 1Last Post: 01-18-2008, 06:12 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks