Remove all solution markdown, task images, solution PDFs, and add renamed folder structure as part of THB-wide reorganization.
This commit is contained in:
20
uebung_02/src/util/IntArrayList.java
Normal file
20
uebung_02/src/util/IntArrayList.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package util;
|
||||
|
||||
public class IntArrayList {
|
||||
int lenght = 4;
|
||||
int lastUnfilledPos = 0;
|
||||
int[] arr = new int[4];
|
||||
|
||||
public IntArrayList(){}
|
||||
|
||||
public void add(int a){
|
||||
if (lastUnfilledPos < lenght){
|
||||
arr[lastUnfilledPos] = a;
|
||||
lastUnfilledPos ++;
|
||||
}
|
||||
else {
|
||||
int[] arrTemp = new int[lenght*2];
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user