From a49176991426243f2ceb9b8fe53c83085e7173a6 Mon Sep 17 00:00:00 2001 From: Sage The DM Date: Wed, 27 Nov 2024 15:00:54 +0100 Subject: [PATCH] LETS START A RIOT OOO A RIOT --- Code/Steiner/simpleGame/.vscode/settings.json | 7 ++ Code/Steiner/simpleGame/README.md | 18 ++++ Code/Steiner/simpleGame/bin/Character.class | Bin 0 -> 939 bytes Code/Steiner/simpleGame/bin/Enemy.class | Bin 0 -> 928 bytes .../Steiner/simpleGame/bin/FightingGame.class | Bin 0 -> 3331 bytes Code/Steiner/simpleGame/bin/Player.class | Bin 0 -> 925 bytes Code/Steiner/simpleGame/src/Character.class | Bin 0 -> 744 bytes Code/Steiner/simpleGame/src/Character.java | 33 +++++++ Code/Steiner/simpleGame/src/Enemy.class | Bin 0 -> 702 bytes Code/Steiner/simpleGame/src/Enemy.java | 18 ++++ .../Steiner/simpleGame/src/FightingGame.class | Bin 0 -> 2838 bytes Code/Steiner/simpleGame/src/FightingGame.java | 91 ++++++++++++++++++ Code/Steiner/simpleGame/src/Player.class | Bin 0 -> 810 bytes Code/Steiner/simpleGame/src/Player.java | 14 +++ .../smartArrayList/.vscode/settings.json | 7 ++ Code/Steiner/smartArrayList/README.md | 18 ++++ Code/Steiner/smartArrayList/bin/App.class | Bin 0 -> 1098 bytes .../smartArrayList/bin/SmartArrayList.class | Bin 0 -> 1504 bytes Code/Steiner/smartArrayList/src/App.class | Bin 0 -> 803 bytes Code/Steiner/smartArrayList/src/App.java | 18 ++++ .../smartArrayList/src/SmartArrayList.class | Bin 0 -> 1183 bytes .../smartArrayList/src/SmartArrayList.java | 10 ++ 22 files changed, 234 insertions(+) create mode 100644 Code/Steiner/simpleGame/.vscode/settings.json create mode 100644 Code/Steiner/simpleGame/README.md create mode 100644 Code/Steiner/simpleGame/bin/Character.class create mode 100644 Code/Steiner/simpleGame/bin/Enemy.class create mode 100644 Code/Steiner/simpleGame/bin/FightingGame.class create mode 100644 Code/Steiner/simpleGame/bin/Player.class create mode 100644 Code/Steiner/simpleGame/src/Character.class create mode 100644 Code/Steiner/simpleGame/src/Character.java create mode 100644 Code/Steiner/simpleGame/src/Enemy.class create mode 100644 Code/Steiner/simpleGame/src/Enemy.java create mode 100644 Code/Steiner/simpleGame/src/FightingGame.class create mode 100644 Code/Steiner/simpleGame/src/FightingGame.java create mode 100644 Code/Steiner/simpleGame/src/Player.class create mode 100644 Code/Steiner/simpleGame/src/Player.java create mode 100644 Code/Steiner/smartArrayList/.vscode/settings.json create mode 100644 Code/Steiner/smartArrayList/README.md create mode 100644 Code/Steiner/smartArrayList/bin/App.class create mode 100644 Code/Steiner/smartArrayList/bin/SmartArrayList.class create mode 100644 Code/Steiner/smartArrayList/src/App.class create mode 100644 Code/Steiner/smartArrayList/src/App.java create mode 100644 Code/Steiner/smartArrayList/src/SmartArrayList.class create mode 100644 Code/Steiner/smartArrayList/src/SmartArrayList.java diff --git a/Code/Steiner/simpleGame/.vscode/settings.json b/Code/Steiner/simpleGame/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/simpleGame/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Code/Steiner/simpleGame/README.md b/Code/Steiner/simpleGame/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/simpleGame/README.md @@ -0,0 +1,18 @@ +## Getting Started + +Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. + +## Folder Structure + +The workspace contains two folders by default, where: + +- `src`: the folder to maintain sources +- `lib`: the folder to maintain dependencies + +Meanwhile, the compiled output files will be generated in the `bin` folder by default. + +> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/simpleGame/bin/Character.class b/Code/Steiner/simpleGame/bin/Character.class new file mode 100644 index 0000000000000000000000000000000000000000..927d495efeb4762c255d9dc38b9b35422b6a1c77 GIT binary patch literal 939 zcmZuw+int36kUfIn8FN~QcA5Y-Y+mF@&Rg-24f__YJwrrw*!nY?JzXMw8o$D3;Ljm z#KZ?bz>hMnbC^&fyqvT5*?Xl`5n*Os50M!rx#iD}1OJj0j`2|--&NbZ zk>?4cHS*#UZAGQtSYL@&vf*{&2Px=CfiK6arr1M&b{@zt?eNo-<8-GN(ZGAeD&P5@ zLX~HgTp*j`QY;0YJ7n48tGmGC2KJeeN$Uz7Ddm)o6w09HO&lc3E#|6byB~g_d@!Wy zwO~${@{}lOk?Nv#DPrT0g#3U|!>xqyNau=>d|#0^uZ%158+wBbi@>%fb98JcWVdyX zP#?=3DEpKxP2LKSCRgbjgM|+ZmfaPWbiyKV5BE2K%W8yG@cu^dgN@+I|KQp>nE$?q MC{je=k(PS=55fC~y8r+H literal 0 HcmV?d00001 diff --git a/Code/Steiner/simpleGame/bin/Enemy.class b/Code/Steiner/simpleGame/bin/Enemy.class new file mode 100644 index 0000000000000000000000000000000000000000..d590fe9cd08ff4f8ed5e56f0ea1a85d53eb95967 GIT binary patch literal 928 zcmZuv4R6v=6g`gu9i*<-k6*vP{{-*|TRLJ4iCs^)BOP&u)J~5Fye&mQw#(l? z6TB~b49sRoZabbMA2TeMYKQ!oSNh!RR_Zcvyl&OD%MFJ3j^7amG^9=Fm`QI;Tk&2RI5g9ncCqhMV2oB@Mg3pG^<(&KKJ{0}85>P7O>TuR=4 zyYIhK!qb5m2>DmKRw_4?kn<+aDIw{OGdSw=k?kG$DdcfU$0|d13Vt+@!ZmRj1qRI@ zN`}R8!;W9sr*0+nEVx^p!4-yLDD+{WI4FE5j5*2akn<$eq@1FsWBm-rUh7b_rIK~c zL=FoEO0aa48RjQKY)^`=2uy6?294yH_lIKdfMKa*m!~!mrBxN$rin!)4cx*V9k&@4 zLbS8GP29yj8s3p=h2XaTv(8sj_+zcri1I8JEy$?*!=NpmI%=mzIE_ukiZ#-s(U~#C z)CrKKkxgeo?-Y5j5vK>3wKnprUtw7J6PO<<5W^h3=fdIy6(pgqDMK-9T!1X*$)i#= zJAzXdEte{lMH2|AmarUAZP6c$6~Op>Y1!^}SW z|Ns48zW=iKpYFeL7r+7hN{1$pI9kY$1qCO6%qmJ95rO1+Yr^WZEhpc3a^$?s1_Jf_ z3r->UfIwYa`;b87keicn)FGBY6!ikj`U{RcQ7Vo|@3b{yOMz6so3-pA%PXjTl^6-e z3ckS7{#u(o)K|0$j=-w6bNvgpGl561dfJC{EEiZFGD<*kb)hEG{e&Mn5V z7BOXfLjopRh>2SwL<@EX>Gzx+1Dgce4vo34FU={pCK z(pGHI@u0wpFkCuaqbz|ov@{>-)9#l=s%~_SpyRS8;DH>C0}*lqBuRSfFZ(9 zaA+x1bHv>WWX^2$iKKz27)d1;20pN31Ox`OK_D9`Yns&ff=~ws4ZnjM~5oE&nNJl z3bsL&-$B>4r9~gVAkd`F_@!)?9*mZ3d&-o4)*6?&76Z?-pcQ-6D%cE+8Y?`qzQkTg zJ4|aKS1rL7^R&m3&vPVq7nSC8pVNRI};F3@t=4YM_AIbrx&*Wm?KlD%fzl=M3t zx81-uIo=(1(YH7&Pmfv7g-R2s_TsI67FJHie;qmaO4UMP+Ge>i{$Waq-L+pXRv7$3pXyQTq;_ z?usp9qcOH%pfMI|&r!>#LoKJ&foG{@dl{d*hNWtImD_1NsXo8R&qY**elBQTaJxYX zzfe8&BJ-lqAu3;1!UTx%5vZtIzcPQG8^Y6|eonBH58`f8(|#vlxnPB(6UX*y;_mGp=!8JRi$XgF@D#xhIKycVw|#ZzU-EuofX{8 z8a~Qlat6zB7Af9rt8fvkaT#my0-EqD_cyQ(H?bbmXvQsUz${PynvL{(Y{DO~8GqrW z_!hR{Z+yVLO|AFP#-`aS;@B=yyrS2mLv(Q6&DYp|>=eD&B~IfZVPTIb@ZB|mE^(PJ zs^_`BguUWA_K9ger*5G~l=)7&iv!{}=oNqD>*%lO6MyIWPd<_l z*2=XVo3wrC*ZMG^rEx;*$4TuB2DQiVh$eALbCJ=)SK}Olo6v}OE9BoxI^1}k-U!sI+8lp>e#jJp8D$g oFM4$RQrv^7qxT*r$XWd#9NDx-e+OHaHNJz5YC65a^BQLV2N5zs4gdfE literal 0 HcmV?d00001 diff --git a/Code/Steiner/simpleGame/bin/Player.class b/Code/Steiner/simpleGame/bin/Player.class new file mode 100644 index 0000000000000000000000000000000000000000..0998b233c4656991a74ea5855319272204c022f4 GIT binary patch literal 925 zcmZuvYi|-k6g>mWE{}z_)V5Yzr78+k3)ZTMR1-sD+=N&X42Jk=fC08HyUjAxH1SVq ze8oh6fIrH3XLplA+H5j&?w$KM_uT#a@7Esy&+*hij6rWX{7m=;G=@}T%zfUM!e_{w z1pbD@r&ES}^O&FVs>9t;wJm+y9n~rI&~|P4f}vcx_-t7hedP{=*6;=*jW{wU444cX zmnN4xDKO+rB%m`aHEmbCnN51af6IH0P=vfbcRJj+l^r=XIkt&xvKh`q6g8JmC|Vy2 z?#M9%vuH9dCGUS|c^`v02liBrYPmy?Azo6AuVKr;b%y1+q0gpLOiXO!21R)@$*>j< zXnWNb2_i`r!6)@33Jm)pfoFx{wD74AXc*zw0TD6=^zbquqKu+z;MPLJqu#OTOC`b` z6RXe_x@+PJ*3u}UVxY{ha?a0kr5Fj{#4heL7^mEsiK8LIddVu!Eg}l5t7>~D)>X9{ z_6ru!%!DHCskYc5 zLUH;n8DeVXgkppZBL-!^3?6nW>Q$ zSUNmb7iu?E*z*(H00)QK;U@tMLb&^Jy>1lH#$zO7kkS-EO_1 z^1--I z(8ZBWT5GnhIto+>cs`3u2?mZh*`LoG^pmsGRDEn`@5k1MA^pzyJn!jei3t`R3{|dr zh0b@(HbR7`hwyMML{;>?k(CUAo(qx&3Hl)C9)a`VQ)j{Jg^I>$5 literal 0 HcmV?d00001 diff --git a/Code/Steiner/simpleGame/src/Character.java b/Code/Steiner/simpleGame/src/Character.java new file mode 100644 index 0000000..c38ac84 --- /dev/null +++ b/Code/Steiner/simpleGame/src/Character.java @@ -0,0 +1,33 @@ +public abstract class Character { + protected String name; + protected int health; + protected int attackPower; + + public Character(String name, int health, int attackPower) { + this.name = name; + this.health = health; + this.attackPower = attackPower; + } + + public void takeDamage(int damage) { + this.health -= damage; + } + + public boolean isAlive() { + return this.health > 0; + } + + public String getName() { + return name; + } + + public int getHealth() { + return health; + } + + public int getAttackPower() { + return attackPower; + } + + public abstract void displayInfo(); // Abstract method to be implemented by subclasses +} diff --git a/Code/Steiner/simpleGame/src/Enemy.class b/Code/Steiner/simpleGame/src/Enemy.class new file mode 100644 index 0000000000000000000000000000000000000000..21112c0452f6c18bc37c673e3eb51539310b486f GIT binary patch literal 702 zcmZvaZA%+L5Xb+Ur^{Wgt;QPrpfzfumsm~T6^sZXEj_SRxS|AKZIU%Pz1x$^MhWyw zwUo9L><8$FDxEz8F|-`)&Fs$p=07w0`_Io`0AAyjg#sR%m`5p(1p`k^Sa_!kWI)8 z=0TswyrV=sMe#-hB|=gg4Hd)uUCn;fIHrOXl`VMKq>?2MNq_O*mQcs~iChNeGR#i& zxl)Oq&SqTmU?`5x8A^^@yN4J@5Wm2aDvzTZePJ$vOpBmAS6UKLcKtB)eS{eG~e!%crS+erl`UdlKf-EMfOq2*-feD8sQF{rN!rWhTXq-X- literal 0 HcmV?d00001 diff --git a/Code/Steiner/simpleGame/src/Enemy.java b/Code/Steiner/simpleGame/src/Enemy.java new file mode 100644 index 0000000..235a98b --- /dev/null +++ b/Code/Steiner/simpleGame/src/Enemy.java @@ -0,0 +1,18 @@ +public class Enemy extends Character { + private int maxHealth; // Store the original health value + + public Enemy(String name, int health, int attackPower) { + super(name, health, attackPower); + this.maxHealth = health; // Initialize maxHealth to the starting health + } + + public void resetHealth() { + this.health = maxHealth; // Restore health to its original value + } + + @Override + public void displayInfo() { + System.out.printf("Enemy: %s | Health: %d | Attack: %d%n", + name, health, attackPower); + } +} diff --git a/Code/Steiner/simpleGame/src/FightingGame.class b/Code/Steiner/simpleGame/src/FightingGame.class new file mode 100644 index 0000000000000000000000000000000000000000..32f408d31607b7bd7a53988043784b9535e5f115 GIT binary patch literal 2838 zcmZuzU2q%K75?s8(yryTEh}+?f|IP1D3Kwy6BF#9gd|QJCnC1vScc$){;Z`dS@CLD zXjgU|XlbDh&_d~70EhmirQ?}SU*JK8W?-gtI@4kL(3$eozV(UczH|msx96-BEWn!4 z-o591=ey_kN*}KM;e7x@_)Qo)a9YJ^GtS^_7z$D<9tk6e(=0isVJwVsOt9v>hRHC7 zaY4mY7_CTanAY&9ipMlu45I^&Ynah+iFKDXJi#nqVfk12L6Wa&___vD#ViXljLU{0 zk>exsESu9%;FZL!yt$%bUV{}z5w-?LLy1YB)KJ#oYVb5v7`ebU3mO(RT-C6o;Trq< zl!~VXLPraB!8<033YVZ+w6XJ+Qd&61B-@eLK<6bPrCN;xA(3rx{5TFB3NWN^kT%06b%k;D;F z_>2{=VD+anrftizif43u3*TnIvjUNIz?5lcouZEC@Ew7~sX51SrLjb(7#YiS-K60k zBFp;?LgslLH}g`(cXeFH^EzI@ivnsLq~m+|KILH2GM8kT4||DrHA4!SEd_$7ZCPBR z?MZ3+n3qYGwhBekb)A*vvXS;ArK@aY={x?X=RSBdLt*BnjvwF^fzI%-Var8BGL2!D zN<`y!>-Zslq~pgNe1C=y`483P0y}1$iec73 zao5N>Wh0(7vSyKd?v4|(mNUOh=V!0TjHlx#cu~hsaYMzcI$p!;I+k%$#~b*Wz)m8m z(Yc(?4G5!rVwSuyJ()G)u766X=AJ;$T`l=a_GMREIfH6tc;>t`Ea|#;om2619lyXY zspb5Twy-4~EsG`3@Ejv&N!i!er{hEbx znG4dGmD2t!_HKh4*l-qPnfSU#96w=;rtQ0*act`Giac&4mZaNnJ3Ru5?Fej|o-^(F zTB%CZa5MJV?bET_In1FV9%x^;iHxxF#c5x1)43ddVGNhY)T}?a7ZfkWl|1j>xNj?s0DY}DlE`Bbj=Z~$}XmC3O?397L`8@<&=ZqiwlW#69QwHwP1oLD5?Gh{?PSCQv)d`YGn z!>%K!6d^x%ggCl^r;QhDZDNnqSw3F^;tBImjrg-(i-1CG^Q+~%G;Vrx>C>E$<%d+?@d$*Omiv{<`g6~&x z&p=X*sa3@Iv29s6bzq)>_twKmYB4R^<@en$=@d0-swL>-SVQyB%Z`L(xQEu55sMtg;doQ)AL4S;T&_?=pj3RDWe!uCNQo{V?ucX=anobl`FWQc$iWa@u+eQ7nNu6 zxN;pcI6=`5p?wVxt58$~RSb9CK}1FCe{opFNpS~p6&-hQoitlN#p&IL)KAdc`3ZLM LWpK(*&qReGe-iLB5w`=LBn+kfV}8n=fQLiJld&HTTMWjYANukIL#=u-?7A0y zwYLmH6KsbiPds+jKxS-5Z0ZeuXrR^dgq&T_LLp9a)lv zdSi3z2UvYW{|4=IT2WGdWa!PpghBNtRjuOctoD$6jG{YVkSXcrZ)Cff`d1iUS0|x) m-7E?7CziafL0V2}-(kI*cP|k-)Wy?`4U!IF&<~JL!`gq;H@I~G literal 0 HcmV?d00001 diff --git a/Code/Steiner/simpleGame/src/Player.java b/Code/Steiner/simpleGame/src/Player.java new file mode 100644 index 0000000..5d452a1 --- /dev/null +++ b/Code/Steiner/simpleGame/src/Player.java @@ -0,0 +1,14 @@ +public class Player extends Character { + private String playerClass; + + public Player(String name, int health, int attackPower, String playerClass) { + super(name, health, attackPower); + this.playerClass = playerClass; + } + + @Override + public void displayInfo() { + System.out.printf("Player: %s | Class: %s | Health: %d | Attack: %d%n", + name, playerClass, health, attackPower); + } +} diff --git a/Code/Steiner/smartArrayList/.vscode/settings.json b/Code/Steiner/smartArrayList/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/smartArrayList/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Code/Steiner/smartArrayList/README.md b/Code/Steiner/smartArrayList/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/smartArrayList/README.md @@ -0,0 +1,18 @@ +## Getting Started + +Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. + +## Folder Structure + +The workspace contains two folders by default, where: + +- `src`: the folder to maintain sources +- `lib`: the folder to maintain dependencies + +Meanwhile, the compiled output files will be generated in the `bin` folder by default. + +> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/smartArrayList/bin/App.class b/Code/Steiner/smartArrayList/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..c97fa9f9f7dbba7143fb7f6c08b10469d4c51bd7 GIT binary patch literal 1098 zcmaJ>?M@R>5IvU`cDoiREmXxXP|%hF^#f7a3KoJ1Qo*DKBmBCQOIgxxo9&j!W9bht zn)m>|hp%Bgx4V4Q7=LtU?wxaI&Y79?=kISn0KCMCfgXWKvDq{b6-XS)Bbl#Bx0>JF zJyaE6ps(P#j=xAyCc7mNU1{to3lYTP=tZBvV99aSM!UYNy!UdqrUa6uMn%@Pr03{! zcp3E%oR&auiKT3&sY}NdNN09R7bVNS=eSi{m$6nqRaDb=8g9!#QXqAKI*%9_78oek zrRNttPac+W7wbkanrm&X1#36*)I?=5- zZsQJ>%e_5;k<2An&>cIwZDO3Nip_mhGjWgYT9&SKm5E6fS$DivuKt#f zTfVBtF@+o}G}>(SNKn9O8!B#@w%QPQ0tjTw@gBf=)_Wn$it>ITVf5w%UCTFh8L6ECp9lZi6X1*-{fh6g|y0A&#PKDsE9x2_kV{7{n!tqG72@3aj*~2`w3z%%o;|DESl1AF#?d zeQ!fqmt=^z}X8ms=$}&<45$ z2G-@KEQH#23fm5Wo@v{)^^8F0SbkZctLUw&EIQF^q8mK|eI?sf3t@dl`4ze1D1rWx zSC!7P^zFz_54&{D4g~g>+7nv>!|mZ)jpmi1zhb8=6>EkU_BMRm)ejw2SFR3v(T_m` z1H_K`JJMY%l(zz{>L!LTOyXXs1%^to+x7}e(e<+Sm8@GC9Ae>%p>Bja=e^A7n#wtB z$W#_1IBMWXvn}oSOdP{;f$o?IvBwhdB)2C1nw4M9LLg`2Bu)urY^{8$J)iZC<&)^R z({t&$wFjd(Yv2s~w=;*P*TgxDvH7lg#Zm^F2ywo}m339smVxoM79_`6OkmQ$g*F#! zCqokjTof=ir4y>fmjY*7t4L8(s;!0fQ%09fT)|a=gLS!~ik@4Q`kAe3+yz>4D1U(^ z39VhgqN=Z(xPhBwQj@_#Tp*?PoXYd!$|6DSOg81ksZtHpLRrh|#=LB#GRu~|(66dl zI}+kRyVfQn6oKBdz2-_C`i!_ZU77k9e5PeS+b^N1zWw(-PY2qUjd`VO-fECV5f2SK z5E$K|X}g==hAJe5Ck>jFRnC7a>fEfr>(*wc(Fx#V>8?5|7%h3;M%b`g=%sCJIcd9C z;nUeA{6$OrE>le*iqdh)6sgtMgZmlGvB5bpAz;qAuJVhH3<4DxC<&bTr^?-U8(0uH z{{K*pI4P2Eg!!l|po2U9ukdToy2n*;?H>Px%zJJ+k>xjXNBceenn?iHy|nhVo%GS7 z^0(pM5k5+DWFh-mHjB3g;hqHmhk0d)K(&rXB3!6$)3 iOm>@&4$RM1h#+s_Iu#9Aver-I+b^vW=QEudOU8ZZQ4y8 zU7h6eDyE1gZX$J&vEwRF`C$)BnC1J>Uj$Tv4A(4oi?o6^zH$!nm4J*~6BkZ_B<7K0 ziBA1O8>Kz^iO9!uL~A4awv@KMBQ`+%Ln%G~51AuS&L(uEoHd5V)aDzKS!;lq(g3!` zDdIBmSilBSq>92sjB4Y^Q_?aFzK intList = new SmartArrayList(); + SmartArrayList stringList = new SmartArrayList(); + intList.add(10); + intList.add(20); + intList.add(5); + + stringList.add("Apfel"); + stringList.add("Banane"); + stringList.add("Kirsche"); + + System.out.println("Integer-Liste:"); + intList.printElements(); + System.out.println("\nString-Liste:"); + stringList.printElements(); + } +} diff --git a/Code/Steiner/smartArrayList/src/SmartArrayList.class b/Code/Steiner/smartArrayList/src/SmartArrayList.class new file mode 100644 index 0000000000000000000000000000000000000000..44ff915bcb92023e791bfb3f7f4bafa4be633939 GIT binary patch literal 1183 zcmaJ=+fEZv6kVsKonD5EjOp}`~bhhuP{d4Gc7O;#D_WO?7i2%tv&n4pOfzZR!~YIjnO2oVl07cDO|^m6jB&Z zBZCS5xS1i`ZQn4ZU|PWpL%d*EhAc8fbF;4*dP?@5VCXL!me}?hyTYmPU6VAuO~>i4$)QWADCk->d z<~Y1nHe6Y#RJ5YTkkW0>sfrE5PdBJHxFgRnOMWO7DtZ;hPJb8 z@G8;QQm{sUV%fIqUXwxHv@GG2OzygZ{%;tU@#Mh}Hyi;N2=NC3x3e){{< z4;cwUjvz+w7@6XfRiPzI&?+Tyg|ulze*3$Z`GpDeU@&kR!f extends ArrayList { + public void printElements() { + System.out.print("Output of the list:"); + for (T object : this) { + System.out.print(" " + object + ","); + } + } +}