From 55e6561e026539cac18294be45f98b95bbc57dc5 Mon Sep 17 00:00:00 2001 From: peet Date: Fri, 14 Jun 2024 01:12:27 +0200 Subject: [PATCH] ich komm nicht mehr weiter --- .../iterator/SkipNullIteratorTest$1.class | Bin 0 -> 1056 bytes .../iterator/SkipNullIteratorTest$2.class | Bin 0 -> 1032 bytes .../iterator/SkipNullIteratorTest$3.class | Bin 0 -> 1124 bytes .../iterator/SkipNullIteratorTest.class | Bin 1290 -> 3886 bytes bin/uebung09/iterator/Array2dIterator.class | Bin 1481 -> 1597 bytes bin/uebung09/iterator/SkipNullIterator.class | Bin 0 -> 955 bytes src/uebung09/iterator/Array2dIterator.java | 7 +++-- src/uebung09/iterator/SkipNullIterator.java | 26 ++++++++++++++++++ 8 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 bin/test/uebung/uebung09/iterator/SkipNullIteratorTest$1.class create mode 100644 bin/test/uebung/uebung09/iterator/SkipNullIteratorTest$2.class create mode 100644 bin/test/uebung/uebung09/iterator/SkipNullIteratorTest$3.class create mode 100644 bin/uebung09/iterator/SkipNullIterator.class create mode 100644 src/uebung09/iterator/SkipNullIterator.java diff --git a/bin/test/uebung/uebung09/iterator/SkipNullIteratorTest$1.class b/bin/test/uebung/uebung09/iterator/SkipNullIteratorTest$1.class new file mode 100644 index 0000000000000000000000000000000000000000..4ac67e7d454c14c8289fc768b0c6747d4e84259d GIT binary patch literal 1056 zcmbVK?@!Y}7=CUm>sG6q6GiYBYSC>b76{QOgaqddm^l+iNc7vST(-ky-agO!>$&egK7R$UhL(*2!;%(>_ERxP)iB@YANf*?nCmF^ z`)}o5FAc+u+_6b$Z^4GeP}||}xF2%jy&UX_K-(xW)H83YW$6FnFqHI2Cf+<{>z+K_ zGVxcWl6sZlVdFFbnp+H3JK7c%Fr0N^qwJuFs*4J048?{4RJ&4%Ub;IF@g^UHf?DZD z0S~u$EX_H0TBa3-2dAjRTcB3#5l?zzUuS9G*tpCvb2P|TsnT*+boK+Wr)8uZOrc7} ztBf((Xm*dVeH}|Rq>#tmhgvK<)arE?Gq}Rw^rJKm#4~BSn*Nuh_f1%aN?#5Y*J(_+ z$78ATn1`NY+OCYD@`6^Wq-sY6VU$pPFN7XN+cxGH7Ei9di@Qdlx?w(zlx}mnimFXF zlfm6kO2qAuCy5|M%00rYM~TKPwO*t(0amLSvFW;7v??$|IYZVG3iJX_>)uDWtpl9< zK&JxE)3-zz;0fyVbu-(+1x(V3;UX^O5f%w;aOE$UdVPTDZ)A`2J7fIvZ$7E4 z^J{CQ=GB}(N4v>C(fWjI@Bc_n1Is-08#gj*7B{o~7H-pS!NVOi$T9;lVa(H{Re<*s DVOaMI literal 0 HcmV?d00001 diff --git a/bin/test/uebung/uebung09/iterator/SkipNullIteratorTest$2.class b/bin/test/uebung/uebung09/iterator/SkipNullIteratorTest$2.class new file mode 100644 index 0000000000000000000000000000000000000000..784c553748792021b6bd686d7a56e25ca2285687 GIT binary patch literal 1032 zcmbVKO>fgc5PfUAabgS!p?nkyg*JsGe7K4#5TvS9RUjgTaB!7FIXUT)Y%w;n*9iU- z2RHx{2YvuQ3Nh;}#f`YMwsv=R^xn*ynf>+q$4>w|XxT6rHYHD`m+?^+P4uzx*b|Z` zfs7N+eY{=ggV|JoYF|Wrki8x8WG@(n zoJ#4(;~*RciBNa#v{We!4^N?^(Vvc zZacVuMY=Iu#3dc!9-RtjSfA8hU=9mR4q2)TO1t`+v<$5M0Y<3sdjJ3c literal 0 HcmV?d00001 diff --git a/bin/test/uebung/uebung09/iterator/SkipNullIteratorTest$3.class b/bin/test/uebung/uebung09/iterator/SkipNullIteratorTest$3.class new file mode 100644 index 0000000000000000000000000000000000000000..ee18088c4cf032b272eddd6fde2e32bdf2d3b882 GIT binary patch literal 1124 zcmbVL-A)rh6#k}Nx@}o(tzbp`K`q)Jq*aJUONfMEY*MO835i@eEn_>d?2_GCqc7ld zcwyp=7n+DBUibh$l<~}V)otPp>}KZ7ocYc-=Wl-g`u+pJI_{WAFsvxyt9l@Mfis9i z<3U|2;c?}9_3nW@>IAmkiWJ*~E-jld81no46|dWz?4I`aMPHdnF%&{=prl>@W5bZ_ zE02M-7*c8|{ZfPOZJ+$&CfTn_N2)c3`{mORRCXAQ4R=puz>u?$K{ksd&RUp6f&46M zK&~wv(FqQF!rSIOTToDKx6kbz?n%9ml!gw4;od3yC@oVc=8*dx@mht~?vh_lxS1|j z+W#`!Ri1PPP3`U_3ntP@u($8hxXO^0&P$z)Hw;r<#rp?a{3vwI#PzZ2j5rv^nMXBi zW{G*h!YnQ_WV>$Q^~GbUW1jtA>6f%;44JMRI9vrD;U31kjW|b|u^w2Bp`w`9CdCseVKLGiehzM{|lWz!1|kYdoPa zgYzUAintIlERxh`3FD)lW0r?8%fw$xszzklAz!p*vHJWA=5~!2$CxWzevfqF$_ILc zpXewVqw`{P#fWa6F!a=C9+|k7U#Cjnh`1L>YVL{ZSClkU+%amGP(#PK8Ln=j9Lfr+ VBn{MX8+BUg4$?IGYtTrb_8W5u0CoTX literal 0 HcmV?d00001 diff --git a/bin/test/uebung/uebung09/iterator/SkipNullIteratorTest.class b/bin/test/uebung/uebung09/iterator/SkipNullIteratorTest.class index 7ffe38fe8c0af17638ba30be5a1cbf5c3227012d..be09b8d2b84b6983b92519b84d4c57eae412a569 100644 GIT binary patch literal 3886 zcmcImTUQfT6#h;Um=L2tL@eHl3YCix#S3bzEg}dufHf41*5VKb7zi^sGf}B+wXMC_ z%a3SZx>n!%Qg6$?^`)zSqigk7*na2CK!Rj>p{rbSX7)L=_qV_O?LGP9>7(BO^x%69 zA%QN>aJ^)~m@HT`!E)eu()0{R_iQJbnKu`Q3;FzDU>N0T4H1EwIsLkx%vvd%9=Z7TwpRZD%GqS0Lh~ zOe&=zA+X0M;&}|jP=|UATLiW!3JRW?PxjjRJUNiA`r zPxYAcr2+|rO!8P)t{AN2YOyaZE(^X~YA1akCH<8;Mfg#vZrP79oW>aqy~~ZLRM_J< z`Vs}$hkkaW?)vI$Zn?bH*&0Ezu*$b>N%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ZrCRNC-<~JJ^RR}yZYcK{Hg>}6H`~@oHE6i$m0cfh@(jyU zRjW&D+TaKIP4pQ&=b7qzG)!l_)5LJuIo?mKeXiZPz{YQ~Zqn9o(7Y?!{hYMTOj mK~CDUOxk8n+RIGZR!&+gllCwt?Mo)@QBK+S&;nVRV=GRN9XdVPYkDU#s0DN?Y71hWq`9r|}>argy)^ zdqPTO$SjAEHvFDeDG#|(d{?O?64G(tW8TFH1PnE=OH)t(9lK?8Ece>}9R^!Qj}5~q zFY8z}KkxZr*mlswQURA3s-smOnK%hLT8sT|JTNXU<4U$<@$8v3S!$y8+kVx>3RbhX zmUq0gWkm1cEzu7JZT{-3HP1G0A_qqA;2go*H%E!=iHz*RrSiy4RswPs09zQUOi&9X2a} Pqh^cRKye+#5#IO(T99bX delta 378 zcmY*TO)mpc6g~6a8|_RxEmJ}hw4+Sg>5PvSqxylwl31{@GsKF7g}sHJ@cw~KH(d}? z31KN%i2q@0CBANljm5n;=iGDdJ-6}4nEv#2eFtC(jdNXNQ5_E42#WHB4R82}#{Mxjp$RIwZIWyfQ((}DU??F)a}8=}m*2uP z3umFU^QbFieVJ3sUO7}g(-A?N>J6ODD@?EOdJ{HpG?6M&-t=H;sMN-cJW<_r4N){; zV1Ys|B16+7T*0z@P_0-6N&26}Fy`f(YUMitdmuhxMBpeN5K8i$%nVgpFx376*M9)A C<~Jt* diff --git a/bin/uebung09/iterator/SkipNullIterator.class b/bin/uebung09/iterator/SkipNullIterator.class new file mode 100644 index 0000000000000000000000000000000000000000..15b794bcd486c5f9e34a6d432db26ad0848e615e GIT binary patch literal 955 zcma))-)|B@5XZmEucIeQMJQ^uVyzzd(DT(oNE%}k69Ny=CiU%r4QxI3F2|m!e^#HG zXrk}_QKqwd*VGD$eYl;Sx!KRme0P8U`Ti5YAsh=ChTWKtV>x^G-W7^Ro(dv&_(g>M z*!MrB0Sh^X%`@+-=lY(Uxr6Z;pC}6jhKh;CO8D+|HbbE!q)=Ukdb79szuh`v$bAT= z+(s7nO0ZC3$ToGj+!K=b?U zVc5D&{}x_XXx#zb8I9Uq;#+fX+2`lV4Ds2*V+Q9&tYf*1!!U>xpAJGTun6SG^9c|2 zriiBuJI7KiLZ2_Vq@>1zt9dYOI4RY!QO7f_(sPDdDyX@Jp^Ai@C2~qrzuIgibN+Qr z)ZoTY%%rE{i1f@iThw+DuNb!1*VQP8!5#*2G~q`=-$L!*C$X;wWH{`M4pu96S3_&$ zPvpZ(kZ$zl=}l^Dp-Afnc>}T;viY}{urJK-`?T67SVWF?56It2l2FDbd6bTasL;_z zv@em>kus`eX%5Ox;76ty(SD$QT6uDb?O&9Ug|1LAr^<$&5bTtG!_<+4xq}zfL4(d^ YXc*o2ZT9XOcI{5=4E7B5bxMD81sSl`p8x;= literal 0 HcmV?d00001 diff --git a/src/uebung09/iterator/Array2dIterator.java b/src/uebung09/iterator/Array2dIterator.java index 8cb6fa4..7908b24 100644 --- a/src/uebung09/iterator/Array2dIterator.java +++ b/src/uebung09/iterator/Array2dIterator.java @@ -28,12 +28,15 @@ public class Array2dIterator implements Iterator{ // } // return false; - - if (list.get(index+1) != null) { + + if (list.get(index)) { return true; } else { return false; } + + + // return true; } @Override diff --git a/src/uebung09/iterator/SkipNullIterator.java b/src/uebung09/iterator/SkipNullIterator.java new file mode 100644 index 0000000..555ddef --- /dev/null +++ b/src/uebung09/iterator/SkipNullIterator.java @@ -0,0 +1,26 @@ +package uebung09.iterator; + +import java.util.Iterator; +import java.util.List; + +public class SkipNullIterator implements Iterator{ + + public SkipNullIterator(Iterator i){ + + } + + @Override + public boolean hasNext() { + // TODO Auto-generated method stub + throw new UnsupportedOperationException("Unimplemented method 'hasNext'"); + } + + @Override + public T next() { + // TODO Auto-generated method stub + throw new UnsupportedOperationException("Unimplemented method 'next'"); + } + + + +}