Search:

Type: Posts; User: Piemeup

Search: Search took 0.09 seconds.

  1. Thread: char [ ] issue

    by Piemeup
    Replies
    9
    Views
    1,119

    Re: char [ ] issue

    I was never told about the use of drawString(), I only knew about drawChars().

    When I compile the code, it says "The type of the initializer, "java.lang.String", is not assignable to the variable,...
  2. Thread: char [ ] issue

    by Piemeup
    Replies
    9
    Views
    1,119

    Re: char [ ] issue

    Sorry, I hope this is better



    //Declaring cards//
    String[] [] cards = new String [4] [13];
    //spades
    cards [0] [0] = "Ace of Spades";
    cards...
  3. Thread: char [ ] issue

    by Piemeup
    Replies
    9
    Views
    1,119

    Re: char [ ] issue

    There are 52 cards, so it would be,

    cards [0] [0] = "Ace of Spades";

    For an example.
    I am trying to get them printed with
    chars [] (Blah blah blah)
    then using,
    g.drawChars (etc, etc, etc,...
  4. Thread: char [ ] issue

    by Piemeup
    Replies
    9
    Views
    1,119

    Re: char [ ] issue

    Thanks for the reply Norm, yes cards is a multi dimensional array of 2, being, cards [3] [12]. I was using the char for things like this and it works fine.


    char[] n1 = {Character.forDigit (value...
  5. Thread: char [ ] issue

    by Piemeup
    Replies
    9
    Views
    1,119

    char [ ] issue

    Hi there, I have been working on a school project worth %15 of my grade, I am half done and it is due tomorrow... I am making a card/war game where 4 numbers are generated, they pick the number(s) of...
Results 1 to 5 of 5