Merge pull request #1441 from ThirdGoddess/branch1

Fix memory leak
This commit is contained in:
Du Yuanchao 2020-08-27 20:49:36 +08:00 committed by GitHub
commit dac62ffedf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ public class PrimeFactorization {
int n = scanner.nextInt(); int n = scanner.nextInt();
System.out.print(("printing factors of " + n + " : ")); System.out.print(("printing factors of " + n + " : "));
pfactors(n); pfactors(n);
scanner.close();
} }
public static void pfactors(int n){ public static void pfactors(int n){