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';
Type: Posts; User: Tjstretch
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';
You can do that?
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...
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
Oh woops my mistake, it should be
Character currentChar;
not char, I'll fix that
Fixed
Use
AND
Rather then code tags for java
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...