
Below I will paste my code. My problem is that when I run this I get to input a int and if correct it will output that I was correct but after that it will output something that I'm not understanding which is"hack2@1f24bbbf". Any help will be greatly appreciated as I'm just beginning learning java.
import java.util.Scanner;
public class hack2 {
public hack2 mathequation1;
int answer = 10;
int numc;
int counter = 0;
Scanner job = new Scanner(System.in);{
while(counter != answer){
numc = job.nextInt();
if(numc != answer){
System.out.println("You are wrong");
counter = numc;
}else{
System.out.println("You are correct");}
break;
}
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.