Search:

Type: Posts; User: Tjstretch

Search: Search took 0.09 seconds.

  1. Replies
    20
    Views
    3,151

    [SOLVED] Re: Nested Loops & Processing Strings

    I meant the
    char one = ...;

    Oh I misread your post too, you meant about not be object not about how I assigned it, thank you.

    So yeah it should be

    char currentChar = 'c';
  2. Replies
    20
    Views
    3,151

    [SOLVED] Re: Nested Loops & Processing Strings

    You can do that?
  3. Replies
    20
    Views
    3,151

    [SOLVED] Re: Nested Loops & Processing Strings

    Sigh, the reason I hadn't fixed the small bugs is because I didn't actually use a compiler, I'm just giving you how you should go about doing it, not copy my code exactly.

    change
    Character...
  4. Replies
    20
    Views
    3,151

    [SOLVED] Re: Nested Loops & Processing Strings

    Oh I must of read the API wrong, I will fix the post with it in one second. I hadn't realized it was static. Fixed, man I'm tired today
  5. Replies
    20
    Views
    3,151

    [SOLVED] Re: Nested Loops & Processing Strings

    Oh woops my mistake, it should be

    Character currentChar;

    not char, I'll fix that

    Fixed
  6. Replies
    20
    Views
    3,151

    [SOLVED] Re: Nested Loops & Processing Strings

    Use


    AND

    Rather then code tags for java
  7. Replies
    20
    Views
    3,151

    [SOLVED] Re: Nested Loops & Processing Strings

    You need to store some variables for each of the digits

    long numChars = 0, numDigits = 0, numSpaces = 0;


    Then you need to declare a BufferedReader, because they are just so much easier. (Or...
Results 1 to 7 of 7