From f0e71f54e1b3c71da7a424fef6f51c75e8c422cf Mon Sep 17 00:00:00 2001 From: Simon Saye Babu Date: Wed, 1 Feb 2023 15:30:21 +0100 Subject: [PATCH] JAVAAAAAAAAAA --- DEV2.1/random/point.class | Bin 0 -> 1143 bytes DEV2.1/random/point.java | 27 +++++++++++++++++++++++++++ DEV2.1/random/test.class | Bin 0 -> 451 bytes DEV2.1/random/test.java | 10 ++++++++++ DEV2.1/random/test2.class | Bin 0 -> 515 bytes DEV2.1/random/test2.java | 10 ++++++++++ 6 files changed, 47 insertions(+) create mode 100644 DEV2.1/random/point.class create mode 100644 DEV2.1/random/point.java create mode 100644 DEV2.1/random/test.class create mode 100644 DEV2.1/random/test.java create mode 100644 DEV2.1/random/test2.class create mode 100644 DEV2.1/random/test2.java diff --git a/DEV2.1/random/point.class b/DEV2.1/random/point.class new file mode 100644 index 0000000000000000000000000000000000000000..acab74a69c20cf00c7a0f51a3d56e47e9a6095ec GIT binary patch literal 1143 zcmaJ=OHUI~6#i~I(`knSg?2!p=%Aug5Gob$Q9y)>)_{=IkPufx=LQGbnWjuNx|O&x zE?nu>jd7`qVl?XBo&Say1D-oPL?O)L+;h+CJLkJ+er$dI24DzxRcPo|a7M*hoC{6Z zWTj6<06h_$#{~t3iZHsvNQtvoh`ul`hS4vA2E;ur#3dDj$Ov&+!H|MshR~?(*xoop z&`2#XNK>xG8JcHohu^D}mw5HQxl|&HR5opgq0M+Ovtm9n(tF{#gA7oqTmXHT5xOCBA>QJ3AN(djyE9Eqi91rLz7?1eC(y?g-gNJD6ZkU@MaZ^ zMllBJto?t$$(miVc$J~EWa^f^=9x~B>)i3GTrY9mhtZ?Bfe9gQGBj{+-@%~pHBYxV z!AxRGMC78lg=q!1qqu{-5Y(IOmtlzgMW0(*;YE)jegp>$ExXqJak6^@`drPL-b13h zYC4u%_UX_0=_6~p)o~(IX1h_SV(stOk-Sj+B?GfSJEK}i-S*dWxV(2%Hc#lJ- zUB)OeY2;JKxWjvNGIZ=#7V|7~x4iR4nOrtSjVF!Vv1L4WXEzuU#^FHfBkt4s?_BgW z6)|Or7EL>9t_5@>K|h1|0-$X~JINDt>!Op1QwHB8weHFCH8Ln=YG;ca75N* zkv{Pe$`^zeHxOx6>uAuVI-;$OLX(BoL>g7f^l5UYj^;XIb+pvcx-L_}@046e+%NuK zv>))>A4fCk3bm^uhDIdO1cPkDbkCxNwlx#A%Oixg#E(QCK||m+K1Ku05!e>DgXcg literal 0 HcmV?d00001 diff --git a/DEV2.1/random/point.java b/DEV2.1/random/point.java new file mode 100644 index 0000000..1a8dfdb --- /dev/null +++ b/DEV2.1/random/point.java @@ -0,0 +1,27 @@ +import java.awt.Point; + +public class point +{ + public static void main(String[] args) + { + Point[] tab =new Point[10]; + int x; + int y; + for (int i = 0;i<10;i++) + { + + x = (int)(Math.random()*200)-100; + y = (int)(Math.random()*200)-100; + tab[i] = new Point(x,y); + } + for (int i = 0;i<10;i++) + { + for (int j = 0;j<10;j++) + { + System.out.println("la distance entre le point "+ + i+"et le point"+j+"est de:"+tab[i].distance(tab[j])); + } + System.out.println(); + } + } +} \ No newline at end of file diff --git a/DEV2.1/random/test.class b/DEV2.1/random/test.class new file mode 100644 index 0000000000000000000000000000000000000000..591b27b68e04cdfe253153748e70a53891443530 GIT binary patch literal 451 zcmZuuyG{Z@6g{&KM%Gmj1VOa0LkdZZ9mK}O3LnWD8>;~(WRTq@Fl%D(U-$vmT4-Xy z2lzGC#)x-T6GP$@cg~zS=gz%%-o9RE01mL_!9^~MJk~rEP~=$WC^2N(DpLB8!LILK zGB`(ZUozx6Dw3y3*p-tD(H#-vghE9O<@!};C~ib^B%(nx&=VC6TE@5%Xwkbq5#wLI z7sSb=Cy$jeXSJN_J>&C{0p}?D*g%D&>SGf%%5DS<`M=a>-J$F)Qo-$1%aAIK6S^q< z)S=?$ITfL)6e+?MLov;=0; i--) + { + System.out.println(args[i]); + } + } +} \ No newline at end of file diff --git a/DEV2.1/random/test2.class b/DEV2.1/random/test2.class new file mode 100644 index 0000000000000000000000000000000000000000..b56fbe8aec2363d6fcadb0435e8b935f6be877ea GIT binary patch literal 515 zcmY+B%}N4M6vzKpM<=H-P18Qi(!Nj^3DQmpLI?!=0L4wKt6p?WXGE_-``)4lXk80~ z7Ck`E(i22v=Z--*i+j#J^ZWnLIWr$WZ|?w3aAZKos(}ci0jwdWvbceDZ0Ok3vBlso zS+*rl8N8WngF!1hZNU(#TDG{H44Pt8=gmG4tn>fHBgU`ho z!vCGFnmy5y3#EB;+MqA&j_kS{R2GT*u@nP(;Y>&xn-6X|`D>b5l3egXk@T%DADt1P zWh&V+L)7iMh|x?#B~nm1+n{m%^kLQG0aF{%Y0xc6kx}&JUcsIzVOXZq?-m(hCW4eJ zv<@$cfppGWn8KsAONmFsU*M&CVhU{v-vgUH%|4Zl$F+$-qufUp^y?_5$Z&-!0eHR< MU|)!ncgV%VzXeETDF6Tf literal 0 HcmV?d00001 diff --git a/DEV2.1/random/test2.java b/DEV2.1/random/test2.java new file mode 100644 index 0000000..57e25c9 --- /dev/null +++ b/DEV2.1/random/test2.java @@ -0,0 +1,10 @@ +public class test2 +{ + public static void main(String[] args) + { + for (int i=args[0].length()-1;i>=0; i--) + { + System.out.print(args[0].charAt(i)); + } + } +} \ No newline at end of file