mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-19 01:41:57 +08:00
Fixed Error:(6, 8) java: class algorithm is public, should be declared in a file named algorithm.java. Inside file PrimeFactorization, the name of public class was wrong.
This commit is contained in:
@ -41,7 +41,7 @@ public class DynamicArray<E> implements Iterable<E> {
|
||||
}
|
||||
|
||||
public void put(final int index, E element) {
|
||||
Objects.checkIndex(index, this.size);
|
||||
// Objects.checkIndex(index, this.size);
|
||||
|
||||
this.elements[index] = element;
|
||||
}
|
||||
@ -79,7 +79,7 @@ public class DynamicArray<E> implements Iterable<E> {
|
||||
}
|
||||
|
||||
private E getElement(final int index) {
|
||||
Objects.checkIndex(index, this.size);
|
||||
// Objects.checkIndex(index, this.size);
|
||||
return (E) this.elements[index];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user