It took a while but I think this does it, though you'll have to check to make sure.
:cool::cool:<:-P\:D/\:D/\:D/\:D/\:D/\:D/\:D/\:D/
This fixes that error and also the error that kept making...
Type: Posts; User: javapenguin
It took a while but I think this does it, though you'll have to check to make sure.
:cool::cool:<:-P\:D/\:D/\:D/\:D/\:D/\:D/\:D/\:D/
This fixes that error and also the error that kept making...
I was able to fix it slightly.
import javax.swing.JOptionPane;
public class UserMathDrill {
public static void main(String[] args) {
//Declare everything
String...
Well, I see that if I define count outside both of the do while llops it will counter the cumalitive number of questions correctly, but will only allow 1 try and will go into negative counter.
Yep, it worked.
:cool::cool:\:D/\:D/\:D/\:D/\:D/\:D/\:D/\:D/
However, it only lets you go 1 question if you play again, your counter goes into negatives, and it never clears it so that your...
Hmmmmm....it's also posting number+otherNumber = 0.
Also your counter starts at 0 when you try again.
I think it only gives you one try the second time and two tires after that and you counter...
I did notice that if you tell it you don't want to play again, that it'll say both are correct.
Maybe it has something to do with the play again.
Also, if you get both wrong and tell it not to...
Funny. It works pretty good for me.
It says number of questions 2 whenever I put something.
If I tell it cancel, it says number of questions 1 and throws a Number Format Exception.