New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to make a program close if a person enter's wrong answer??
for Java only and no error direct program close
2 Answers
+ 2
Try
System.exit(0);
0
@Rrestoring faith Second that motion