Results 1 to 3 of 3

Thread: Project Help

  1. #1
    jschmall12 is offline Member
    Join Date
    Apr 2010
    Posts
    2
    Rep Power
    0

    Question 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.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,313
    Blog Entries
    1
    Rep Power
    32

    Default

    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.

  3. #3
    m00nchile is offline Senior Member
    Join Date
    Feb 2010
    Location
    Ljubljana, Slovenia
    Posts
    470
    Rep Power
    11

    Default

    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 :D
    Ever seen a dog chase its tail? Now that's an infinite loop.

Similar Threads

  1. Project
    By ADARSH in forum New To Java
    Replies: 10
    Last Post: 10-08-2009, 03:27 PM
  2. my project::::
    By balajimca in forum CLDC and MIDP
    Replies: 2
    Last Post: 08-07-2009, 02:52 PM
  3. open existing project project ..
    By itaipee in forum Eclipse
    Replies: 1
    Last Post: 12-28-2008, 08:12 PM
  4. First Project Need Big Help
    By earl in forum New To Java
    Replies: 1
    Last Post: 01-18-2008, 06:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •