mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-21 02:53:15 +08:00
Closing scanners.
This commit is contained in:
@ -13,6 +13,7 @@ public class PrimeCheck {
|
||||
} else {
|
||||
System.out.println(n + " is not a prime number");
|
||||
}
|
||||
scanner.close();
|
||||
}
|
||||
|
||||
/***
|
||||
|
Reference in New Issue
Block a user