so mprogrammer in your code you are comparing a string with a integer so it will never true.
Code is in which error occur:
if (!type.equals(roll)){
System.out.println("Type again");
error++;
...
Type: Posts; User: maz3r
so mprogrammer in your code you are comparing a string with a integer so it will never true.
Code is in which error occur:
if (!type.equals(roll)){
System.out.println("Type again");
error++;
...
I have modified that code.
So try to run that code. And tell me that Is it function as you want or not?
If not then tell What is the functioning you need in that code.
...removed by moderator
Actually in your code their is a error..
if (!type.equals(roll)){
System.out.println("Type again");
error++;
in if function "type" is a string and "roll" is a integer.
so it...
First Tell me what does this program actually do.
I'M not able to understand about the working of that program.