Format code with prettier (#3375)

This commit is contained in:
acbin
2022-10-03 17:23:00 +08:00
committed by GitHub
parent 32b9b11ed5
commit e96f567bfc
464 changed files with 11483 additions and 6189 deletions

View File

@ -52,9 +52,10 @@ public class SieveOfEratosthenes {
}
//Write all primes to result array
int primesCount = (int) Arrays.stream(numbers)
.filter(element -> element == Type.PRIME)
.count();
int primesCount = (int) Arrays
.stream(numbers)
.filter(element -> element == Type.PRIME)
.count();
int[] primes = new int[primesCount];
int primeIndex = 0;
@ -68,7 +69,8 @@ public class SieveOfEratosthenes {
}
private enum Type {
PRIME, NOT_PRIME
PRIME,
NOT_PRIME,
}
public static void main(String[] args) {