Markou why must you make agonizing assignments

This commit is contained in:
2023-10-18 23:12:48 -05:00
parent f9babdde19
commit 95546d4a94
74 changed files with 3581 additions and 22 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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;
}
/**

View File

@@ -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());
}
}
}