Markou why must you make agonizing assignments
This commit is contained in:
@@ -13,6 +13,6 @@ You can copy and paste the single properties, into the pom.xml file and the IDE
|
||||
That way multiple projects can share the same settings (useful for formatting rules for example).
|
||||
Any value defined here will override the pom.xml file value but is only applicable to the current project.
|
||||
-->
|
||||
<netbeans.hint.jdkPlatform>JDK_20</netbeans.hint.jdkPlatform>
|
||||
<netbeans.hint.jdkPlatform>Graal_JDK_20</netbeans.hint.jdkPlatform>
|
||||
</properties>
|
||||
</project-shared-configuration>
|
||||
|
@@ -7,8 +7,8 @@
|
||||
<packaging>jar</packaging>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>20</maven.compiler.source>
|
||||
<maven.compiler.target>20</maven.compiler.target>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<exec.mainClass>com.calebfontenot.mp4_generics_calebfontenot.MP4_Generics_CalebFontenot</exec.mainClass>
|
||||
</properties>
|
||||
</project>
|
@@ -75,11 +75,16 @@ public class ArrayListASDV<E>
|
||||
* @throws IllegalArgumentException - if some property of the element prevents it from being added to this collection
|
||||
*/
|
||||
@Override
|
||||
public boolean add(E e)
|
||||
{
|
||||
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
public boolean add(E e) {
|
||||
if (e == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
list[index++] = e;
|
||||
if (index >= list.length * 0.75) {
|
||||
doubleSizeOfList();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -46,7 +46,7 @@ public class IteratorASDV<E> {
|
||||
|
||||
};
|
||||
return (IteratorASDV<E>) it;
|
||||
}
|
||||
};
|
||||
public static void main(String[] args)
|
||||
{
|
||||
IteratorASDV<Integer> ti = new IteratorASDV<Integer>();
|
||||
@@ -58,4 +58,5 @@ public class IteratorASDV<E> {
|
||||
System.out.println(it.next());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user