From 619b3ac7b6ab2e34d38012913eb2557c033064b2 Mon Sep 17 00:00:00 2001 From: HORVILLE Ewen Date: Tue, 12 Apr 2022 17:16:22 +0200 Subject: [PATCH] TP11 & TP12 --- APL2.1/TP11/Playlist/Observer.class | Bin 0 -> 1059 bytes APL2.1/TP11/Playlist/Observer.java | 40 +++++++++++++++ APL2.1/TP11/Playlist/Playlist.class | Bin 0 -> 738 bytes APL2.1/TP11/Playlist/Playlist.java | 38 ++++---------- APL2.1/TP11/Playlist/TestPlaylist.class | Bin 0 -> 890 bytes APL2.1/TP11/Playlist/TestPlaylist.java | 25 +++++++++ APL2.1/TP11/Rectangle/Observer.java | 26 ++++++++++ APL2.1/TP11/Rectangle/Rectangle.java | 62 +++++++++++++++++++++++ APL2.1/TP11/Rectangle/TestRectangle.java | 12 +++++ APL2.1/TP12/Apparences/Apparences.class | Bin 0 -> 1454 bytes APL2.1/TP12/Apparences/Apparences.java | 62 +++++++++++++++++++++++ APL2.1/TP12/Apparences/Observer.class | Bin 0 -> 879 bytes APL2.1/TP12/Apparences/Volume.class | Bin 0 -> 1296 bytes APL2.1/TP12/Apparences/Volume.java | 41 +++++++++++++++ APL2.1/TP12/Capture/Arithmetic.class | Bin 0 -> 601 bytes APL2.1/TP12/Capture/Arithmetic.java | 13 +++++ APL2.1/TP12/Degrés/Degres.class | Bin 0 -> 1152 bytes APL2.1/TP12/Degrés/Degres.java | 44 ++++++++++++++++ APL2.1/TP12/Degrés/Observer.class | Bin 0 -> 1008 bytes APL2.1/TP12/Degrés/Observer.java | 35 +++++++++++++ APL2.1/TP12/Incomplet/Incomplet.class | Bin 0 -> 577 bytes APL2.1/TP12/Incomplet/Incomplet.java | 13 +++++ APL2.1/TP12/Plantages/Arithmetic.class | Bin 0 -> 392 bytes APL2.1/TP12/Plantages/Arithmetic.java | 5 ++ APL2.1/TP12/Plantages/ArrayIndex.class | Bin 0 -> 410 bytes APL2.1/TP12/Plantages/ArrayIndex.java | 5 ++ APL2.1/TP12/Plantages/NullPointer.class | Bin 0 -> 331 bytes APL2.1/TP12/Plantages/NullPointer.java | 6 +++ APL2.1/TP12/Plantages/NumberFormat.class | Bin 0 -> 356 bytes APL2.1/TP12/Plantages/NumberFormat.java | 5 ++ APL2.1/TP12/Plantages/Runtime.class | Bin 0 -> 343 bytes APL2.1/TP12/Plantages/Runtime.java | 5 ++ 32 files changed, 408 insertions(+), 29 deletions(-) create mode 100644 APL2.1/TP11/Playlist/Observer.class create mode 100644 APL2.1/TP11/Playlist/Observer.java create mode 100644 APL2.1/TP11/Playlist/Playlist.class create mode 100644 APL2.1/TP11/Playlist/TestPlaylist.class create mode 100644 APL2.1/TP11/Rectangle/Observer.java create mode 100644 APL2.1/TP11/Rectangle/Rectangle.java create mode 100644 APL2.1/TP11/Rectangle/TestRectangle.java create mode 100644 APL2.1/TP12/Apparences/Apparences.class create mode 100644 APL2.1/TP12/Apparences/Apparences.java create mode 100644 APL2.1/TP12/Apparences/Observer.class create mode 100644 APL2.1/TP12/Apparences/Volume.class create mode 100644 APL2.1/TP12/Apparences/Volume.java create mode 100644 APL2.1/TP12/Capture/Arithmetic.class create mode 100644 APL2.1/TP12/Capture/Arithmetic.java create mode 100644 APL2.1/TP12/Degrés/Degres.class create mode 100644 APL2.1/TP12/Degrés/Degres.java create mode 100644 APL2.1/TP12/Degrés/Observer.class create mode 100644 APL2.1/TP12/Degrés/Observer.java create mode 100644 APL2.1/TP12/Incomplet/Incomplet.class create mode 100644 APL2.1/TP12/Incomplet/Incomplet.java create mode 100644 APL2.1/TP12/Plantages/Arithmetic.class create mode 100644 APL2.1/TP12/Plantages/Arithmetic.java create mode 100644 APL2.1/TP12/Plantages/ArrayIndex.class create mode 100644 APL2.1/TP12/Plantages/ArrayIndex.java create mode 100644 APL2.1/TP12/Plantages/NullPointer.class create mode 100644 APL2.1/TP12/Plantages/NullPointer.java create mode 100644 APL2.1/TP12/Plantages/NumberFormat.class create mode 100644 APL2.1/TP12/Plantages/NumberFormat.java create mode 100644 APL2.1/TP12/Plantages/Runtime.class create mode 100644 APL2.1/TP12/Plantages/Runtime.java diff --git a/APL2.1/TP11/Playlist/Observer.class b/APL2.1/TP11/Playlist/Observer.class new file mode 100644 index 0000000000000000000000000000000000000000..1b2555c0be933713c1bf1fd04c67fd3edf5b9b68 GIT binary patch literal 1059 zcma))+iwy<6vn^dwy<4_6ib1Y-YgU-kw-7pK1gVS0c*sV__)vs*><~IcNfZEq|YYW zCYl(ZjPY-3tY>ChN{fjmyE~V2=KQ|%&HnoRyLlK({bJIO)n1RMHDE-8OAUoGWQ4qrwoqs>pChW|=xUwAVc#=NOj8 z2PgV$8Lr1I?l5Hk7M3_`X?eZClBbGpjDnmMq{{g2KJFA)YD}WZPF@PxuwWuM&Qp@Egdgp3Jk;xXAOTKr+vzBibG4i=Fn$YIzwsLp2HY)*jboixueZs lTAdlnA1{eEp)*XCsa9}{``u=$Hg~(r-9F=1h`nm6jlVArm^ASKdIK*-6pAI7R*bEf>Vp~Du`J#0Hr=gQ|CKK# zk;E5YjF0{xE4ZTIs)B18 zuE(K+>&U2>)v=%>rz5Z9hK@xYrjDCBZYlC@1$Q*u)v&}6Td^F=Uu6hqvO5fsqT7@V z<7LZ{&-v)q}BSP=^fB9^I54UI!e0aI!#4bHpuFI0}m8DM1ev7Bf>CM?Ml(+ zHJ4W;H~D%`3V%-;Siv$?-*$LyPx6<2>M>HYl43I(_hrMU<}?4Fn&wHrYJDQzXl83m%`rilvfB{8<&u>d+HJ`9qHp^}+x6sjSN2XG zMKS?DESgP*g%f>o;G0Fa(8e zrQLaojAC@*5bQH87|s#Kf@B0Emaf%XwX^>p|Uk#a7D?@&$6g@AoBSi?3n3%>S0Xc=%A4yya6o>;fI5u_gM~a;UL%*Kw*NliQc_cZI zZo2BKyRN$GuER{bq6@pz%yiB0qdL7$G1zqKk?%YAzH^W6y?WB?fByO#zzuw(!9YSq zQo}M<6s%4ng^yHR(eN>@D!8WNx`Izs+)!{+#Vrjw)}%>Gvo6hT1$Q)ra928?D%enQ zPeT}MDl#fI6=XG>M?!{jl5$^~&lKbpY%xr%o0jR_VHl6acNqd1yD1o^3Z^AW-F96# zRbFpVB+%xj#c(e6r0|p<@>Gjk`>BfOnAUz;CZ4W%ym3(EodI8~*j=X~a;8k4+URt+ zBdmsSS7o-2D3(amvprkE104kv8H}NDro~;iWP3TgYc;da8=~Wxwxyt?ql|5ag-p4W z$(E`QvqrU?H%jHAv6(eC^VuCE8ddPQj)zil;XjHQ?s{+47~<8g(V;ROZn}mijD}4W zTAm{uLwMvh3Diwt8Fv}Z4y8sElx@fEdPbBXB=?`E+-Ee9)K<>nZ8@}@Z8c@HMI9AX zb?iv9i@i5`{F#@!@0iU3KO!B;r2R*z4ffya-RpXuP2&%4@vbF>Ge?|UrO5ZGV9ubH z>#lGPg`?v!p6K`jU+VY@Uo&XK*)vQJyC~P6iiXD!9xZ$)U*r~PIt*uA;T3HAV8d$W zglG{l_Ww_QM6+__dZJBdNjRhsKH-~oYMYLUM~6l5cKS{0?}n+DjwH2YS9Ir!`5mfT680N^^6yNf0%geNESCl)#8Ege&K7Ug3{gE=v56YIKK8X!l^pEWf zZ#Fj?Qnz4I?Uw9(X(U4&(tK0zGW^7GN@PfkP&0PBV_QT|$4?rUcN_-kNl;b0rfZ(O zPqD}GU3%UZ>HU|#F);F$$i7eBBCU+pV4@H9k^sXcvJ-wVf=OJ)2ZV{r9wA6^;P=qj zpBR6EONBoW3{CW)yuh4~Cw;8@_!Qw|=(W)4KF$=9Gk8T;4^zqM=5(`%=_Do2B##lQ z1t$79+r#WJ!nM%3KHe+(XpT_HM-f76fn%Jn^)bH|T#f{LSXl9GB;YT} zxQZBV6UriiEhMpr6>zNLfWD@OxPtGA@dK{mM_k8G^x6FxH}MN@;a8;b8`enym_mTQ Tih&0TRQhWw%{NBjF~t7`GL%s; literal 0 HcmV?d00001 diff --git a/APL2.1/TP12/Apparences/Apparences.java b/APL2.1/TP12/Apparences/Apparences.java new file mode 100644 index 0000000..72ac66f --- /dev/null +++ b/APL2.1/TP12/Apparences/Apparences.java @@ -0,0 +1,62 @@ +import java.awt.*; +import javax.swing.*; +import java.awt.event.*; + +class Observer implements ActionListener { + public Observer() { + + } + + public void actionPerformed(ActionEvent evt) { + String name = evt.getActionCommand(); + JPanel f = (JPanel)((JButton)evt.getSource()).getParent(); + + + if (name == "Jaune") { + f.setBackground(Color.YELLOW); + } else if (name == "Cyan") { + f.setBackground(Color.CYAN); + } else if (name == "Magenta") { + f.setBackground(Color.MAGENTA); + } + } +} + +public class Apparences { + + public static void main(String[] args) { + try { + UIManager.setLookAndFeel("toto"); + } catch (ClassNotFoundException e) { + System.err.println("CONCENTRE TOI NOM DE DIEU !!"); + + } catch (ClassCastException e) { + System.err.println("Tu pourrais te concentrer et coder bien ?"); + + } catch (Exception e) { + System.err.println("Prout !"); + } + + JFrame f = new JFrame("Fond"); + f.setSize(200, 200); + f.setLocation(100, 100); + f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + f.setLayout(new GridLayout(1, 3)); + + JButton b1 = new JButton("Jaune"); + JButton b2 = new JButton("Cyan"); + JButton b3 = new JButton("Magenta"); + + Observer observer = new Observer(); + + b1.addActionListener(observer); + b2.addActionListener(observer); + b3.addActionListener(observer); + + f.add(b1); + f.add(b2); + f.add(b3); + + f.setVisible(true); + } +} \ No newline at end of file diff --git a/APL2.1/TP12/Apparences/Observer.class b/APL2.1/TP12/Apparences/Observer.class new file mode 100644 index 0000000000000000000000000000000000000000..2faf9fdb1105b8503fb1e398d063031022286b28 GIT binary patch literal 879 zcmZuvTW=Ck5dIFgUA9Z9pw(7usc40kcGap_X^fPhNy9Cn(e&{^k7O(ClI1}4KlnT9 zvp!(rgXy#XN#mSduf&&`Gc(_r`R4NV`{yqJir6!d#8m^=u%g6u4XXws$Y@y8aU+f_ zZW@T;mX390+}4p(IZ25#CoXfvph*aET!H}%kj%bVr9pN4FPG5O= zSK6-A65cD<8;E0u)m-g_Pq@WTr6nf9kyhDDOZv8MHd@5kV?eQl{SQjD$B49>ap)PM=euX6Hn7 zCBusEn(eS=kEC#BzOOsV1y2Hc@BUd-i#Ir@czEG33GA%j`X zLIQ3-AuTmOBD(l1i{e^wsXtnvN1*xNbSiG&r7mMf)mp9jlDPa?pC2M{VkG1~t*qy{ zW5q4~*NOv7a3e?Mh8kq~d9`s^Mh5eAhLn(QGDMn|NHR^<8fiv4y739@13jo0k_N#* zcNu|Bo=aFHso?L(A0b`doFY^w5k5y`is(6FjY3L0Lt^VA^eN)+ktw8%z@GE%g+j_a zgF*2G*{W2?FSU+1z2^{xNhOk4B9>WVm?w@q9*TVo0OI}ZJ{k_8VbRpB7zl&P=X27;*^0edPy$H>Si}?b_?TY z{sf;G9hDisIfH@G89zJz5PyWjsL$DyP+>MXx#!&Hyglb^{`}|H-vOM)<~XMChJ!az zbg+z)h+__ID-ITLTuvuMltn!$r?*6`ih9b%+YWMg$Hu#&pLQ^f_iUW8@xH=nM@KC$ zP*7EcTqO*8u@2%b?I*@!YDd8dl1{~o8ouc%xQ!%=Oc2-1w(%9FI$_c?H`>Pd^>EuX z6_$#%FZH%A>$`E8m>@3KhmcF6pIzQk7^#F!L-(2&m}^PrwuwH|w|!bByV?ulO4#X! z0l^A;cg0(ebhqs_dTEH<^;kE)s_Sm*Y2z$=Ip+mlyry6kC5dxAOrnOl>`CB>trukPw>VHn|Mo@!n%Hi3y03Pa5E-WBGD zwwL`p2B*H5i#_U z{h2U@Im&4|0WM#(9Of~};ZM;rk3)l?inXSQ9~p17PG9>04y^EZtdH>(%i_u5ccKq> zMx-PK4Dm%P`!}x~Q zhtz+-5o$mI*=Ja^vG5Fs)#9GNQ6dq1BX&40F}xzoDLp}8!qyGUY))PYj literal 0 HcmV?d00001 diff --git a/APL2.1/TP12/Apparences/Volume.java b/APL2.1/TP12/Apparences/Volume.java new file mode 100644 index 0000000..af09c3a --- /dev/null +++ b/APL2.1/TP12/Apparences/Volume.java @@ -0,0 +1,41 @@ +import java.awt.*; +import java.awt.event.*; + +import javax.swing.*; + +public class Volume extends JComponent implements MouseWheelListener { + private static final int margin = 10; + private static final int numCircles = 10; + private int currentLevel = 0; + + public void mouseWheelMoved(MouseWheelEvent ev) { + currentLevel -= ev.getWheelRotation(); + currentLevel = Math.max(0, Math.min(currentLevel, 11)); + repaint(); + } + + @Override + protected void paintComponent(Graphics brush) { + Graphics newBrush = brush.create(); + + if (this.isOpaque()) { + newBrush.setColor(this.getBackground()); + newBrush.fillRect(0, 0, this.getWidth(), this.getHeight()); + } + + newBrush.setColor(new Color(50, 50, 50)); + newBrush.fillRect(0, 0, getWidth(), getHeight()); + + + for (int i = 0; i < numCircles; i++) { + if (currentLevel > i) newBrush.setColor(new Color(230, 170, 0)); + else newBrush.setColor(new Color(200, 200, 200)); + + newBrush.fillOval(margin + (getWidth() - margin * 2) / numCircles * i, getHeight() / 2, getHeight() / 4, getHeight() / 4); + } + } + + public Volume() { + super(); + } +} \ No newline at end of file diff --git a/APL2.1/TP12/Capture/Arithmetic.class b/APL2.1/TP12/Capture/Arithmetic.class new file mode 100644 index 0000000000000000000000000000000000000000..4fbe1cb54b4a13e119e246bbaf7ae337eecd9edc GIT binary patch literal 601 zcmY*WT~8W86g|T(j4WHQQmOr*O07t3B9A`UG%-z0n$VAgrY}AX+lh{{yJQ)f_80jK z4`_Vo59p6FJ%c7&Hre?&_nvd_x%2n-<_~}a>;@>~Q5oxK1bB>%04sPR@zf#D9P(VE zDe*#}^wuQCz7y~|ufGfU@6#Vzpw=^q{yd2XI{T&uLn6f}Q{yux#L6TBjm}B$T>Vtt zp-N7>eVdu&^w0@B=vx(Cd{U!(UeHe`S)`AR6R90##-7F6nrPp#LjQ%jc{Qzal-dCQU-@pykrr0zn=ZSj}l)2Io4mOHlv!*y@;O(+LCXcNR?A z{mT9=U1${_3e*=G%dmhPxuhY@`<;)@s;9GzBAx#RaaWRqK#LPE^DO`mY!MZ%A#Y9Y zf_riA3S!CwN5-|Z00k*D&$CNylj^=;hJx=6=kW6U00l-o=KK6>SiR@;h`UJb8vZ3J uy%|bx=8)5cyvH&{hF!r1PhgK8%atf0*<+Pu9}<-)97_}>No%|oQ2z%&dT-wV literal 0 HcmV?d00001 diff --git a/APL2.1/TP12/Capture/Arithmetic.java b/APL2.1/TP12/Capture/Arithmetic.java new file mode 100644 index 0000000..d4e6994 --- /dev/null +++ b/APL2.1/TP12/Capture/Arithmetic.java @@ -0,0 +1,13 @@ +public class Arithmetic { + public static void crash() { + System.out.println(1 / 0); + } + + public static void main(String[] args) { + try { + crash(); + } catch (ArithmeticException e) { + System.err.println(e); + } + } +} \ No newline at end of file diff --git a/APL2.1/TP12/Degrés/Degres.class b/APL2.1/TP12/Degrés/Degres.class new file mode 100644 index 0000000000000000000000000000000000000000..d1d88b145073bf7587afecbf5768cfbbce0c1b30 GIT binary patch literal 1152 zcmZuwOHUI~6#j0RcKR5gEe{!aNC9D>E%gZsC}Ob&Q(ysN(8Od)uVqL(CDUm^-MVyX zT)Nhc(ZsX~B*y4M?mg%0ov(j(-UArNO+QYeU&eqJ zr~PnYP{5D?O~9~#5gAcGd_orUBJM{3gIl((Z~2 zny6s0Y;TtLhp$&1IC|iVQx(#)*_k!bP1-2g+~gKR-;sNGg`0NbxWXxHphAX`BhqBC zuvs)oJ~_PShUoJ!N&h^xwqleFdM1cKr57xIF3@D?BJ8GBH$_I#JyHXEON60^(BmW} zdYPxtOPr)^9S!i(-mhJ_R>KW7Na<*Z#X@*qg*zI|2D4RoqMj<`D67J|3*TxD{`q=b z*hOG9tklprAvv^3P`4@tTZ64tG^_4?B8Bif*i%JNbqh8{j4t^iRH67jiIJK#;W$N7 zgm=-hN-ecccm$IKlT}Z=iZ)e_5yn(%tUa#Egi%$h;>4Y(>UIK&Xh9-E+UPiRq2gHN zfgdtjY4$GiBSNb|C>TW}#?Xuz1d&D_cS&{y>Q)$o>??|=z zH^5l-e+ary!l^3PYrTe~&c9YC6x z7qGUxu3wd9S5t^>Ryxu@kp8@uW+RP)jTElhNaBi(`&cmXz{W!?+IWP=CYEe0;|Za4 zexc!T5Is$0a&lDZs4CluyKMmh=T~TpADL z5g@A-CikW4sb2G%O{c}Nq_eqTjy-x?%I9nR7D@{Q&%i=ucyq=LoHQ zkO5fvPZ0UB6Bx(z3S8qEXD$#$7#7bVdPi}+UpLdQ8_dt0Aaq`1(XT59h|NJ`te^j$ ze%-A&cZ%>C21@ylFy0}VNe$LYnUq;CeLyUeiqvTgR&+F!IYaam7X2IAOxZM!*$!C1 zBIy_b$$8#DVG&A7P*R%SanhV7_$>dM3%o62l4~}FRm?C3$_W3!xDoxuF&QReCi8@e Mp(wlGWZb~yZ)rcey+dGKSfDr`3;cqDB&By+&IXD(f{3 zu-ev9e03TP{?B{ud|1TtNEz_tNfzhnAdz~ChPym4}V z_&JsXt@6yr8kT*m<1Itwk%d7#nK}oPCqqI4u zH`ZowZVRQ!vs3SUFdwsIQ84gl?r+_I-4)?jc0i#|AbzdK_B}?wKl;K4-9_;e^4ttR5vp zI98>+X^K?V_ae=SaSEYIhC%c&o{1L`=c1g(iLO;S9hpWyshT>ISIUUPi(2WYLTZ(r z7s=tZO7iGGnwfnDtUd@vLKgLLxujo2UW#)WI&S*DT)z8 zZ!u$;X5e!p%E`SGT@NQXghRJ5&jK9)oZ<@o4k$Cqo#RiiHv$YEMR!3O>|>R%ksiTb au>LzN$Id@sw|bw(g6bZvVF(CYSo;GrSxnpj literal 0 HcmV?d00001 diff --git a/APL2.1/TP12/Plantages/Arithmetic.java b/APL2.1/TP12/Plantages/Arithmetic.java new file mode 100644 index 0000000..73807ef --- /dev/null +++ b/APL2.1/TP12/Plantages/Arithmetic.java @@ -0,0 +1,5 @@ +public class Arithmetic { + public static void main(String[] args) { + System.out.println( 1 / 0 ); + } +} \ No newline at end of file diff --git a/APL2.1/TP12/Plantages/ArrayIndex.class b/APL2.1/TP12/Plantages/ArrayIndex.class new file mode 100644 index 0000000000000000000000000000000000000000..3f156f8f228b19e2bd8d3f6c5f928aabe726c05d GIT binary patch literal 410 zcmZutO-sW-6r4@cu1%w<*3>UNcrxZ-z>9~9Ac7zi6(U|dZQ7-5$%n*5?9bAJf`|S9 zf0Xz(9zwxAyf-^L^LBXOKVJ&~r`WU6!deF|dN$Uv!O`c~WN4qMOqJ&hrhoLnU|r@D z$>5GuCU2@Vmc_k@6Jo4XsElFYKaOVNMTCjSreRbTDw__q(T?(}7|ScA#qLE>i1~Fk zk*~*E?Vt_L;W-#!i(}it4tB}Y$QXLf*xPs}$K?_g&7Vt|Qp&ud2k$R~%ELPfP*Myj z(jh~?p0P|b@Fy)wD81+Z7aj+&XgT^AppAf2U7_1Pbw<4ve1g3ZVCYb7*QCZax`eg# d5N6GG-(dv7;^YHnW3Xv1NMO@H3=UxftG{YUQ}O@+ literal 0 HcmV?d00001 diff --git a/APL2.1/TP12/Plantages/ArrayIndex.java b/APL2.1/TP12/Plantages/ArrayIndex.java new file mode 100644 index 0000000..299c565 --- /dev/null +++ b/APL2.1/TP12/Plantages/ArrayIndex.java @@ -0,0 +1,5 @@ +public class ArrayIndex { + public static void main(String[] args) { + System.out.println(args[args.length]); + } +} \ No newline at end of file diff --git a/APL2.1/TP12/Plantages/NullPointer.class b/APL2.1/TP12/Plantages/NullPointer.class new file mode 100644 index 0000000000000000000000000000000000000000..7c4cb1cca582b3466536b72d0d59d52950a09a0e GIT binary patch literal 331 zcmY*UO-sW-5Pg%TO&eodKW`qqB?|WFK@p@N2%!oUJ$Ty0rEW<#uq6I3FA5&~0sbiQ zEgq`7?7aDS^Jezz`{NV9DfVK7*o-m6D8e|xmY{cTtZ6O;oiw`_gwy&-3r4xIde*KA z?e0`jF%zzov4Z{dF<+_|HK~+cOy-RQePQQ9?#mUx~+|Ev^(+i1YPtZ zY$w>ku3+O&o$R&XO|jHv^Dp%~gNv5W%3ZP+rq|gNhv@Jx{sa)OP8%^gAPTX2^bUEY pBk0rmviAqPG0{^qwg$w3JINOkZ9oYAK`S7sa_`2oiDJ465g literal 0 HcmV?d00001 diff --git a/APL2.1/TP12/Plantages/NullPointer.java b/APL2.1/TP12/Plantages/NullPointer.java new file mode 100644 index 0000000..78d9893 --- /dev/null +++ b/APL2.1/TP12/Plantages/NullPointer.java @@ -0,0 +1,6 @@ +public class NullPointer { + public static void main(String[] args) { + String s = null; + s.charAt(1); + } +} \ No newline at end of file diff --git a/APL2.1/TP12/Plantages/NumberFormat.class b/APL2.1/TP12/Plantages/NumberFormat.class new file mode 100644 index 0000000000000000000000000000000000000000..f6d9c7a3093789e2131395308921aca08e7bf0a6 GIT binary patch literal 356 zcmZvXzfQw25XQet(l~@b|3J&cfLHdxUtTjdquWFh98?L|65rBDAO4 zsOwc#D0?f5C3m7qYC{<057UKQ%i&U*ayWBVoASaN(^QdvUsB<-`}lF-lp`OE}Ii1<|h0`P?p y922e%ITPpB=^N;k1!0S0{L}P0#Wrh?9&`4n=mqZx?;AMfnLx;wHOA^vojNpu zKt$MI+g9D{_d>l`UGZ2yd&?ZxBZyU(&{;dOe4+|V=%xQ{$01t$J$F3t1VkJ+_;$dV rIJZt_pbswiogBlZ=#Wh$Ts!m#{!)z>@E*JV48hkQ-u1Uw^RWF3gt|f8 literal 0 HcmV?d00001 diff --git a/APL2.1/TP12/Plantages/Runtime.java b/APL2.1/TP12/Plantages/Runtime.java new file mode 100644 index 0000000..c86c196 --- /dev/null +++ b/APL2.1/TP12/Plantages/Runtime.java @@ -0,0 +1,5 @@ +public class Runtime { + public static void main(String[] args) { + throw new RuntimeException("OwO"); + } +} \ No newline at end of file