Results 1 to 2 of 2
  1. #1
    begginer12 is offline Member
    Join Date
    Dec 2009
    Posts
    1
    Rep Power
    0

    Default fill object of array with char

    if in my class Test

    i have
    char ch;
    Test [][] test1 = new Test [4][5];

    public void setChar(char c)
    {
    c = ch;
    }

    why this does not work?

    test1[2][3].setChar('$');

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    why this does not work?
    If you mean "what does the compiler message relating to this line mean?" then post the code and the message.

Similar Threads

  1. Convert Char Array to String Array
    By Mayur in forum New To Java
    Replies: 8
    Last Post: 10-12-2009, 12:41 PM
  2. (Trying to) fill HSB (Hue|Saturation|Brightness) array
    By courteous in forum New To Java
    Replies: 1
    Last Post: 01-19-2009, 08:49 AM
  3. Replies: 0
    Last Post: 04-23-2008, 09:15 PM
  4. Array Fill Test
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-14-2008, 09:45 PM
  5. Replies: 0
    Last Post: 04-14-2008, 09:43 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
  •