From a51cb0c73881a37c08cb0d32813f256d3d8505d6 Mon Sep 17 00:00:00 2001 From: htom Date: Sat, 13 Dec 2025 21:41:42 +0100 Subject: [PATCH] final --- ora1/HelloWorldApp.class | Bin 423 -> 0 bytes ora1/HelloWorldApp2.class | Bin 1031 -> 0 bytes ora1/HelloWorldApp3.class | Bin 1119 -> 0 bytes ora1/HelloWorldApp4.class | Bin 1178 -> 0 bytes ora1/HelloWorldApp5.class | Bin 462 -> 0 bytes ora10/proj1/untitled/.gitignore | 30 +++++++ ora10/proj1/untitled/.idea/.gitignore | 3 + ora10/proj1/untitled/.idea/misc.xml | 6 ++ ora10/proj1/untitled/.idea/modules.xml | 8 ++ ora10/proj1/untitled/.idea/vcs.xml | 6 ++ ora10/proj1/untitled/sokT.json | 1 + .../untitled/src/hu/unideb/inf/pj/Runner.java | 32 +++++++ .../src/hu/unideb/inf/pj/RunnerBe.java | 20 +++++ .../src/hu/unideb/inf/pj/Telepules.java | 81 ++++++++++++++++++ .../src/hu/unideb/inf/pj/Telepulesek.java | 24 ++++++ ora10/proj1/untitled/t1.json | 1 + ora10/proj1/untitled/untitled.iml | 21 +++++ ora2/Runner.class | Bin 1734 -> 0 bytes ora2/StringArr.class | Bin 1639 -> 0 bytes ora4/proj2/untitled/src/Runner.java | 2 +- ora5/proj2/Map/src/hu/unideb/inf/ps/Room.java | 1 + ora9/proj1/untitled/.gitignore | 30 +++++++ ora9/proj1/untitled/.idea/.gitignore | 3 + ora9/proj1/untitled/.idea/misc.xml | 6 ++ ora9/proj1/untitled/.idea/modules.xml | 8 ++ ora9/proj1/untitled/.idea/vcs.xml | 6 ++ ora9/proj1/untitled/konyv.txt | 51 +++++++++++ .../untitled/src/hu/unideb/inf/pks/Konyv.java | 71 +++++++++++++++ .../src/hu/unideb/inf/pks/Runner.java | 50 +++++++++++ ora9/proj1/untitled/untitled.iml | 11 +++ 30 files changed, 471 insertions(+), 1 deletion(-) delete mode 100644 ora1/HelloWorldApp.class delete mode 100644 ora1/HelloWorldApp2.class delete mode 100644 ora1/HelloWorldApp3.class delete mode 100644 ora1/HelloWorldApp4.class delete mode 100644 ora1/HelloWorldApp5.class create mode 100644 ora10/proj1/untitled/.gitignore create mode 100644 ora10/proj1/untitled/.idea/.gitignore create mode 100644 ora10/proj1/untitled/.idea/misc.xml create mode 100644 ora10/proj1/untitled/.idea/modules.xml create mode 100644 ora10/proj1/untitled/.idea/vcs.xml create mode 100644 ora10/proj1/untitled/sokT.json create mode 100644 ora10/proj1/untitled/src/hu/unideb/inf/pj/Runner.java create mode 100644 ora10/proj1/untitled/src/hu/unideb/inf/pj/RunnerBe.java create mode 100644 ora10/proj1/untitled/src/hu/unideb/inf/pj/Telepules.java create mode 100644 ora10/proj1/untitled/src/hu/unideb/inf/pj/Telepulesek.java create mode 100644 ora10/proj1/untitled/t1.json create mode 100644 ora10/proj1/untitled/untitled.iml delete mode 100644 ora2/Runner.class delete mode 100644 ora2/StringArr.class create mode 100644 ora9/proj1/untitled/.gitignore create mode 100644 ora9/proj1/untitled/.idea/.gitignore create mode 100644 ora9/proj1/untitled/.idea/misc.xml create mode 100644 ora9/proj1/untitled/.idea/modules.xml create mode 100644 ora9/proj1/untitled/.idea/vcs.xml create mode 100644 ora9/proj1/untitled/konyv.txt create mode 100644 ora9/proj1/untitled/src/hu/unideb/inf/pks/Konyv.java create mode 100644 ora9/proj1/untitled/src/hu/unideb/inf/pks/Runner.java create mode 100644 ora9/proj1/untitled/untitled.iml diff --git a/ora1/HelloWorldApp.class b/ora1/HelloWorldApp.class deleted file mode 100644 index db5b4cf53c6efbf623a7510eb5344ca35246c1ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 423 zcmZvZ&q~8U5XQf0W7EXc*4Ea)g?bQL59R?XLJ`D6Q6W+fo|1McTQ=E{rh<>92L%s4 zfDa|k#)Amm!_3F*H$R4%ukVjf03&o=lu))|dDuXO&{%{|p|8SZ?%zfWG0h2;bD7Be zf>7=cCJw4_Y`7ja;r+7*&&yoI?9wZ4YL5$$)c##2lRU^X5yrzRwg}#}P)he6bf#v< zE*jXj(e%*54xzQCi(sdQp%TXSf4Rkg43)`zIGEVz5NZXsppMd%U|s5&Ak@b)5jU$i z64`wiDXv&?C>ho1KdxgD+(56gskoBH>bJ(GQ?TRzv^* diff --git a/ora1/HelloWorldApp2.class b/ora1/HelloWorldApp2.class deleted file mode 100644 index 1bcbe552c6a0eb0548cef3e8eab912127ceadedd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1031 zcmaJ=YflqF6g@*9Tb7k#d5Ju%TCfGBif@VrY(gNZkE8@X_-W`)VCi;dvpXf>pZGWQ zLp6Nx2l%6mce+JO+PKNi+`W75nRCzX{q_6uCx9Kiu`z;#g`|TN(hL)4{G6A4E>FrI zkIzIyGo-gX>FKu&iDK!{Mh2r6YzJd-uEFaUkrpimtD$71e8DhTEY-Sno+?-4WM!1< z#~oxbL42xB^wWPapF&USx()?zRWisC)xHecdNXfh3ey&59L(Yt@m`Vk6)>a%Q%-!v zn6TRev3c^OVszieyoCh^i&$dFUQzUPF=Xgix8_OGJ$0qKpCU(g=cefw427;`T}wQ9u9~78n;ZME%NtsS7Ytwe9q0k$ zQ}(!YeGwIEN;TU-Wl(ls=33#wMIeU2`x}q{)k^Pw>laz&zF+sWsE`Z$Qi`zZ^C%LL zh1U$r13e9sYJrNE{tu-wiTgqxD>PE(GAj)g7>X1v(#}j~^*h*C3K&YXn%6)Aqgcfn z#Rj@frKWh{2dvsR+{oSRV3PK=4(2X#2k7AbKZYEVgiX)eMPM$8+>^hFC7YV`UR5<50^61FtGCRIX$g%H_)u&QXO@ zYq8iv`TaIh7$BZ%5`N@g%-g{6bVUbJG>S>23AO3@O}&z_FpLq7Q5$0zC+-EbErFri zH|fO7wSZ9#M033TqR~BxYaG{YOktWKb%8k7#gL?JYh}kH-NP5U+YxE9D`Vp(W*EjA zqAn@3D)g?S4-7*KPlpV1S8d*@#}t&cF>9*fk#5)Hm}ltUkgltCRp8dveE&W}yrgO* zDP@$sZZ`I0ur2nCx$%Z@JciNSyH0$5hoP^cMYX;q{3xDd`SM{!zA#u7)eNd~-7(0% z0}(Vt&8aUNcPRdqQaaRu@VBHsP_-}#Qq&tAik7vN3`-^O(841;=6GVfdCHKDoQ<4w zydzbYh1MCg>{=I9t%75Q5A8;s2ex+E5MIrdVYaMPz3CS_t7}`il(>ED%PYd${b~Ku z#q-~?U1UkPZpG2E$Y5`Jo(xK^2tyfitTN1Y)O3|p4(gHV|A$gHwdz6!bJTg}GEeF~ zFyv@9MI$pS3!lM0(u5&TPxBdwp$7|Cq`3)wZ(5he+!yfjC-kKUPcgK3iixeIZ%CXV zO>0YMxB;Bv*2$kAhSn9)W~d7dGY$@$n1iq|LLEJheq^aR=P`gKibxUv7sfayId1=? dk1-S?$Q|6JF-bxm(0vap^k&hlh-Y|#iN7Tl8qWX# diff --git a/ora1/HelloWorldApp4.class b/ora1/HelloWorldApp4.class deleted file mode 100644 index a9780e3a648c7a8831f6a67f60f2d0de2414198e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1178 zcmaJ>>rN9v6#k~AY+JTm${pn*0=9ru1#c8ls3IhQCM6K{*U(O2>2`LrJ07g%?8{9R^Gj33OiTlCSzolo>*n zWa!@xDlI3oCEbe3D^KupHVy;b8o!5ODAh70y|0scP4uCk!8qpruJ}mYh|+tFJ!oPG z!{j>^ivELn>sj&&CW;$W8UQa(#4(C71LGzpaEqb$idRDcL&VkP)UQq|kcCKF@+ezl zblb!frWx8~K&LO2uF-GIOp?%dOr(%z7%cOW$T_mW)q$ms$?_GK%4e8qh0)wh^PV#? zuSpvLJzHvN7EEOH`9%u0;|l}#89FzGZ94~!XBXF8cZo>moT6ap+P0+Ft&|Uix5p1{ zinNuvKAnNohi1U^K0_j}c%ihz-FkjJ?^L{k*syeQLW-lRC|acjts$NLy5lHcdEDI* z>ewmzQDhl90^OA;E>Ezoc07w?70(U4(7LQKOa=M}s#)^XDTz!?=9*L+yr3Mf%J8XC zqpbeT^dJb|n z_kH0Tc*!u`w5L{74Qw!s{Xdmvu(mI{toLYM^`pNuv0!*W)+nt^M`ka;zLLSPNMHRk z5Jn73cu2NRJtaR(>*6;U@6HgrpbIf~j^t;IpJ5<5a*mtiPVSI1e~B639J62k{G`}j z-8d99oS6otr;{y?NITus|hrcE*-rhRHb!+ zMkKXGH&dO)3)mwG`i-i3R@%ZEDs(IBG4wQC(c9I=>>kA@n2qZ0Gjex~J$%2bw3eoe dFi7jPZiAMk6C;Cl>R8Y|p|KB?3AvHlt3RZPU+Mq= diff --git a/ora10/proj1/untitled/.gitignore b/ora10/proj1/untitled/.gitignore new file mode 100644 index 0000000..13275f1 --- /dev/null +++ b/ora10/proj1/untitled/.gitignore @@ -0,0 +1,30 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ +.kotlin + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/ora10/proj1/untitled/.idea/.gitignore b/ora10/proj1/untitled/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/ora10/proj1/untitled/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/ora10/proj1/untitled/.idea/misc.xml b/ora10/proj1/untitled/.idea/misc.xml new file mode 100644 index 0000000..188022c --- /dev/null +++ b/ora10/proj1/untitled/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ora10/proj1/untitled/.idea/modules.xml b/ora10/proj1/untitled/.idea/modules.xml new file mode 100644 index 0000000..3007dae --- /dev/null +++ b/ora10/proj1/untitled/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/ora10/proj1/untitled/.idea/vcs.xml b/ora10/proj1/untitled/.idea/vcs.xml new file mode 100644 index 0000000..c2365ab --- /dev/null +++ b/ora10/proj1/untitled/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ora10/proj1/untitled/sokT.json b/ora10/proj1/untitled/sokT.json new file mode 100644 index 0000000..222e865 --- /dev/null +++ b/ora10/proj1/untitled/sokT.json @@ -0,0 +1 @@ +{"adatok":[{"nev":"Db","lakossag":20000,"teruletKm2":200.2,"megye":"HB","alapitasDatum":"1500.01.01"},{"nev":"BudaPest","lakossag":2000000,"teruletKm2":2000.2,"megye":"Bp","alapitasDatum":"1000.01.01"},{"nev":"Pécs","lakossag":50000,"teruletKm2":10.2,"megye":"Baranya","alapitasDatum":"1800.01.01"},{"nev":"Eger","lakossag":400,"teruletKm2":43.2,"megye":"Heves","alapitasDatum":"1010.01.01"}]} \ No newline at end of file diff --git a/ora10/proj1/untitled/src/hu/unideb/inf/pj/Runner.java b/ora10/proj1/untitled/src/hu/unideb/inf/pj/Runner.java new file mode 100644 index 0000000..827dfd5 --- /dev/null +++ b/ora10/proj1/untitled/src/hu/unideb/inf/pj/Runner.java @@ -0,0 +1,32 @@ +package hu.unideb.inf.pj; + +imq + +import java.io.File; +import java.io.IOException; +import java.util.ArrayList; + +public class Runner { + static void main() throws IOException { + Telepules t1 = new Telepules("Db", 20000, 200.2, "HB", "1500.01.01"); + System.out.println(t1); + + Telepulesek sokT = new Telepulesek(); + sokT.addTelepules(t1); + sokT.addTelepules(new Telepules("BudaPest", 2000000, 2000.2, "Bp", "1000.01.01")); + sokT.addTelepules(new Telepules("Pécs", 50000, 10.2, "Baranya", "1800.01.01")); + sokT.addTelepules(new Telepules("Eger", 400, 43.2, "Heves", "1010.01.01")); + + System.out.println(sokT); + + ObjectMapper om = new ObjectMapper(); + String t1json = om.writeValueAsString(t1); + System.out.println(t1json); + String sokTjson = om.writeValueAsString(sokT); + System.out.println(sokTjson); + + om.writeValue(new File("t1.json"), t1); + om.writeValue(new File("sokT.json"), sokT); + + } +} diff --git a/ora10/proj1/untitled/src/hu/unideb/inf/pj/RunnerBe.java b/ora10/proj1/untitled/src/hu/unideb/inf/pj/RunnerBe.java new file mode 100644 index 0000000..0c32383 --- /dev/null +++ b/ora10/proj1/untitled/src/hu/unideb/inf/pj/RunnerBe.java @@ -0,0 +1,20 @@ +package hu.unideb.inf.pj; + +import com.fasterxml.jackson.databind.ObjectMapper; + +import java.io.File; +import java.io.IOException; + +public class RunnerBe { + static void main() throws IOException { + ObjectMapper om = new ObjectMapper(); + Telepules t2 = om.readValue(new File("t1.json"), Telepules.class); + System.out.println(t2); + + Telepulesek tSok2 = om.readValue(new File("sokT.json"), Telepulesek.class); + System.out.println(tSok2); + + Telepulesek t3 = om.readValue("{\"adatok\":[{\"nev\":\"Db\",\"lakossag\":20000,\"teruletKm2\":200.2,\"megye\":\"HB\",\"alapitasDatum\":\"1500.01.01\"},{\"nev\":\"BudaPest\",\"lakossag\":2000000,\"teruletKm2\":2000.2,\"megye\":\"Bp\",\"alapitasDatum\":\"1000.01.01\"},{\"nev\":\"Pécs\",\"lakossag\":50000,\"teruletKm2\":10.2,\"megye\":\"Baranya\",\"alapitasDatum\":\"1800.01.01\"},{\"nev\":\"Eger\",\"lakossag\":400,\"teruletKm2\":43.2,\"megye\":\"Heves\",\"alapitasDatum\":\"1010.01.01\"}]}\n", Telepulesek.class); + System.out.println(t3); + } +} diff --git a/ora10/proj1/untitled/src/hu/unideb/inf/pj/Telepules.java b/ora10/proj1/untitled/src/hu/unideb/inf/pj/Telepules.java new file mode 100644 index 0000000..4fae655 --- /dev/null +++ b/ora10/proj1/untitled/src/hu/unideb/inf/pj/Telepules.java @@ -0,0 +1,81 @@ +package hu.unideb.inf.pj; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonPropertyOrder({"megye", "nev", "lak", "alapitasDaum"}) +public class Telepules { + private String nev; + private int lakossag; + private double teruletKm2; + private String megye; + private String alapitasDatum; + + public Telepules(String nev, int lakossag, double teruletKm2, String megye, String alapitasDatum) { + this.nev = nev; + this.lakossag = lakossag; + this.teruletKm2 = teruletKm2; + this.megye = megye; + this.alapitasDatum = alapitasDatum; + } + + public Telepules(){} + + public String getNev() { + return nev; + } + + public void setNev(String nev) { + this.nev = nev; + } + + public int getLakossag() { + return lakossag; + } + + @JsonProperty("lak") + public void setLakossag(int lakossag) { + this.lakossag = lakossag; + } + + @JsonIgnore + public double getTeruletKm2() { + return teruletKm2; + } + + public void setTeruletKm2(double teruletKm2) { + this.teruletKm2 = teruletKm2; + } + + public String getMegye() { + return megye; + } + + public void setMegye(String megye) { + this.megye = megye; + } + + public String getAlapitasDatum() { + return alapitasDatum; + } + + public void setAlapitasDatum(String alapitasDatum) { + this.alapitasDatum = alapitasDatum; + } + + @Override + public String toString() { + return "Telepules{" + + "nev='" + nev + '\'' + + ", lakossag=" + lakossag + + ", teruletKm2=" + teruletKm2 + + ", megye='" + megye + '\'' + + ", alapitasDatum='" + alapitasDatum + '\'' + + '}'; + } +} + + + + diff --git a/ora10/proj1/untitled/src/hu/unideb/inf/pj/Telepulesek.java b/ora10/proj1/untitled/src/hu/unideb/inf/pj/Telepulesek.java new file mode 100644 index 0000000..576a589 --- /dev/null +++ b/ora10/proj1/untitled/src/hu/unideb/inf/pj/Telepulesek.java @@ -0,0 +1,24 @@ +package hu.unideb.inf.pj; + +import java.util.ArrayList; + +public class Telepulesek { + private ArrayList adatok = new ArrayList<>(); + + public Telepulesek() {} + + public ArrayList getAdatok() { + return adatok; + } + + public void addTelepules(Telepules t) { + this.adatok.add(t); + } + + @Override + public String toString() { + return "Telepulesek{" + + "adatok=" + adatok + + '}'; + } +} diff --git a/ora10/proj1/untitled/t1.json b/ora10/proj1/untitled/t1.json new file mode 100644 index 0000000..43aa82d --- /dev/null +++ b/ora10/proj1/untitled/t1.json @@ -0,0 +1 @@ +{"nev":"Db","lakossag":20000,"teruletKm2":200.2,"megye":"HB","alapitasDatum":"1500.01.01"} \ No newline at end of file diff --git a/ora10/proj1/untitled/untitled.iml b/ora10/proj1/untitled/untitled.iml new file mode 100644 index 0000000..d2b17e5 --- /dev/null +++ b/ora10/proj1/untitled/untitled.iml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ora2/Runner.class b/ora2/Runner.class deleted file mode 100644 index 2e46c1586babb1c02e5889114fac91d90c127fed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1734 zcmaJ?OK%%h6#j1fxPDBN=HbL{Nt?D#vE#H(fCQYBKxz}3V7Da>Zc8Zi#u+8k*fW-A z95t{&NR|2nSkOg=^x8@lODn{) zd7*yxBxO|A3MzxYB+91RJO%ax zw)%*sWVB%gCuB=p`GR4pvceGsr*N7YVN@vmK`~b;@F+ysVvm=9r`leXun%t$Jl>!aHV1(SG*VW=p!)TE*3g>_A{Hi9 zLaLp55ymUh*_701mrL&q6MZxSL>!oq(PyN=?0*azvoI@RcpY;bZzy;Z^Ue0!lQ3T{ ziycbEX&Pnfjw`ZC*>famfR-zAMo5%2)(L=~w5F?(VOXYB7Nv}8Z5r#Q z2k%mbMNOX>VIE{9FYega8tlBG>LB zDGG(GW~qd=vM2#c7KCZ4CdVy?(YBg8rOL6!aN_?}sdJ6GFoKITY4VYj)(s6`inw8V zGkG)i1ndzp3~v#YV!#P67VtLlq{@CGvu?Wm)AJoqe+z!&F}zRElX1)q$LbH!9~&O8 zqVFjNm+v~**L%Ox>4nEQS;d(FM3x3HmT+|^cx=WS^46z)j%k0uAMicIRLC3fPbQRT zQ2F9ZxP!`4&=pkfKL8IZ30IJ4KEcUPP^n`4uAe+VYj`CZtsxFn@v@Y=YM6e0;5EE@ zaER6K88y7tyogniX!wXd#f7$vg8Lasr_Y1_ESuA1H|Jy8O|nH!c+f+uX$XGWO+NZ` zyAh+CN%Ue0eV9Q%eX#-LFo>I^bqgVE(rPSF*G-(nCnWofEbrkoKF1k+MH}E7jG~US z_#R{UfxP{Qar}aF_?_N=P_dUN@)A6|=;c`C;OuV%_6S`s$2*N1hl748i;VF52SX13 z9<6P6s}R`5bz9>v9H+&TvFo~wEA&1_HC-pTuiA9krYknh;X{)9NcIr~@(BG4YcQ8Q diff --git a/ora2/StringArr.class b/ora2/StringArr.class deleted file mode 100644 index 2ec76fc5963d2a8e042dfe2c2e3f6bb8a2878039..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1639 zcmaJ>T~`xV6y2A6OcF=HK!j*f+JYt`rnN1##?oRcH5x!0go^g#GP#nG$(?lO#=^V( z1AVfu`q1b4Fs_A5en5XsAG`Wsd+rRCut=M=GIQ^lbI$C&@1FDf>z!QybFee$L(D+j zL;^{M!H4`2FF9Opl$O>X3QI90uh`O7vkb99am7IDKvG?Kw%jm~VK^3+c9iXu>K2z$ zcxjk8YM|f500s}1ZTm{J82W6c#fA`!;0Vcx_EO*3IRt}iscw@i%T6p?c~#C0FaE#kEgWgKrC zc*n%Mx_IbcxLr96Mq5`nG6MsXCeGk2N#_W;p_-v|)hr2KG;t173?nVRDJrhCxLUPU zlUBasQuz#L_o#Lwul8g!j%f|(0-^3vqqQ;co{9IhHb<0ur`;A_h5JIsKQQs(UcBc1 z7{xWd8IA8_hD$v<9#*s`ECZjIxQsHfx0>9WBUR&tYO#{RI6l>Y$w~1-rMQy9=L{@_ zbJauzU(gX+u2kHXq{GQ>1Qlvj7e91_v_!eMrd!SHR$uB?YZ29|i5s{{=U~f**jjq< zAF@<+@q#X1jDV4)Z!x4JlgxP@MJsNDOf;aqwAg8_3vZdPI~0kx2phxk!o40^tS}s{ zD{gHr@OGGQV3oYmBb6ajcRQXX=55`z|IMo}Xk*cLa@BQ}uRPvf5US}m{1on!h1fV7 zNaEWJzQgwhxIU?MhKbOOp<8VE$lVmBs9j{Pd2T7!+h%yuE$3ch)crb_4M+GBHP_wj zw9AK?bwv&oE^oI*kMwTB(FiGb`(&?0g*#5&R)TC|R`sl?INbMzZ-5k;JjAINR0A6f zr~W^cOc?Q^Ltmmvr+@lNvknZmX*EW7rX%NGfc-`bhOg+V9|JKOFLf-_no?Ps_69|N zNxgzmdx`Yj=Q#2L#};CPERdP@6NWIqcq7vS2P&Gi7a z#|e7nGY!8lgg;9YSF=nI;6WlWiVRNEeG>gBQlx||u3-qP7>0u!wrGU@gc1Bq@h8aR y4ppB({57%$=mSZ!zmSbKjQvRljN$9>U3alY_Y?{A4gK%IqFsho4Lm>-`F{X4laUz! diff --git a/ora4/proj2/untitled/src/Runner.java b/ora4/proj2/untitled/src/Runner.java index 4a6f9a9..0e35be0 100644 --- a/ora4/proj2/untitled/src/Runner.java +++ b/ora4/proj2/untitled/src/Runner.java @@ -4,7 +4,7 @@ import hu.unideb.inf.ps.Sokszog; import hu.unideb.inf.ps.Teglalap; public class Runner { - public static void main() { + static void main() { EgyenloOldaluHaromszog h1 = new EgyenloOldaluHaromszog(10); Sokszog h2 = new EgyenloOldaluHaromszog(11); ((EgyenloOldaluHaromszog)h2).getOldalhossz(); diff --git a/ora5/proj2/Map/src/hu/unideb/inf/ps/Room.java b/ora5/proj2/Map/src/hu/unideb/inf/ps/Room.java index 2bfd7b7..3fa6bf1 100644 --- a/ora5/proj2/Map/src/hu/unideb/inf/ps/Room.java +++ b/ora5/proj2/Map/src/hu/unideb/inf/ps/Room.java @@ -1,6 +1,7 @@ package hu.unideb.inf.ps; import java.util.ArrayList; +import java.util.List; public class Room { private Building building; diff --git a/ora9/proj1/untitled/.gitignore b/ora9/proj1/untitled/.gitignore new file mode 100644 index 0000000..13275f1 --- /dev/null +++ b/ora9/proj1/untitled/.gitignore @@ -0,0 +1,30 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ +.kotlin + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/ora9/proj1/untitled/.idea/.gitignore b/ora9/proj1/untitled/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/ora9/proj1/untitled/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/ora9/proj1/untitled/.idea/misc.xml b/ora9/proj1/untitled/.idea/misc.xml new file mode 100644 index 0000000..188022c --- /dev/null +++ b/ora9/proj1/untitled/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ora9/proj1/untitled/.idea/modules.xml b/ora9/proj1/untitled/.idea/modules.xml new file mode 100644 index 0000000..3007dae --- /dev/null +++ b/ora9/proj1/untitled/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/ora9/proj1/untitled/.idea/vcs.xml b/ora9/proj1/untitled/.idea/vcs.xml new file mode 100644 index 0000000..c2365ab --- /dev/null +++ b/ora9/proj1/untitled/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ora9/proj1/untitled/konyv.txt b/ora9/proj1/untitled/konyv.txt new file mode 100644 index 0000000..53f973d --- /dev/null +++ b/ora9/proj1/untitled/konyv.txt @@ -0,0 +1,51 @@ +1116152201;Tíz kicsi néger;9789630788984;EURÓPA KÖNYVKIADÓ KFT.;2010.08.01;2090;krimi;266 +1116152202;A váratlan vendég;9789635490479;EURÓPA KÖNYVKIADÓ KFT.;2004.08.01;1406;krimi;200 +1116152203;És eljő a halál...;9789630786430;EURÓPA KÖNYVKIADÓ KFT.;2007.08.01;1900;krimi;292 +1116152204;Tűzvarázs;9789639300347;FABYEN KIADÓ;2010.08.01;1836;krimi;488 +1116152205;A bankár;9789632544137;ULPIUS-HÁZ KÖNYVKIADÓ KFT.;2011.09.22;2799;krimi;400 +1116152206;Vészbejárat;9789639300279;Fabyen Kiadó;2008.08.01;2095;krimi;472 +1116152207;Ébredj velem!;9639300200;Tóthágas Kiadó;2007.08.01;1668;krimi;490 +1116152208;Holtak könyvtára;9789639973114;GEOPEN KÖNYVKIADÓ KFT.;2010.08.01;3316;krimi;400 +1116152209;A vád tanúja;963841345X;Hunga-Print;1994.08.01;3000;krimi;254 +1116152210;A tűzgyújtó;9789630786836;EURÓPA KÖNYVKIADÓ KFT.;2010.08.01;3040;krimi;520 +1116152211;Álomcsapda;9630779501;EURÓPA KÖNYVKIADÓ KFT.;2006.08.01;1870;sci-fi;752 +1116152212;Hasznos holmik;9630778246;EURÓPA KÖNYVKIADÓ KFT.;2005.08.01;1683;horror;720 +1116152213;Dolores;9600781875;EURÓPA KÖNYVKIADÓ KFT.;2006.08.01;2125;thriller;264 +1116152214;Fagyos éden;9789639828605;METROPOLIS MEDIA GROUP;2010.08.01;3791;sci-fi;460 +1116152215;Fény a horizonton;9789639566873;CHERUBION KÖNYVKIADÓ ÉS SZOLG.;2010.08.01;1753;sci-fi;344 +1116152216;Fényözön;9639346888;Cherubion Könyvkiadó;2003.08.01;1444;sci-fi;392 +1116152217;A vénusz óceánjai;9637429174;Cédrus Kiadó;1992.08.01;1036;sci-fi;158 +1116152218;A biológia rövid története;11111111111;Gondolat Kiadó;1972.08.01;1200;természettudomány;278 +1116152219;A Hold tragédiája;22222222222;Kozmosz Könyvek;1979.08.01;1500;szépirodalom;310 +1116152220;Hazám, hazám, te mindenem;9789632511993;SZALAY-PANNON-LITERATÚRA KFT.;2010.08.01;2660;történelem;128 +1116152221;Az Osztrák-Magyar Monarchia tengerészeti repülői 1911-1918;9789633275092;ZRÍNYI KIADÓ;2010.08.01;4741;történelem;112 +1116152222;A magyar királyi honvédség légvédelme 1920-1945;9789633274989;EURÓPA KÖNYVKIADÓ KFT.;2010.08.01;4741;történelem;150 +1116152223;Napóleon;9500274612;EURÓPA KÖNYVKIADÓ KFT.;2004.04.01;2300;történelem;653 +1116152224;Napóleon;963280256X;Gondolat;1975.08.01;1500;történelem;783 +1116152225;A Föld enciklopédiája;9789630961615;KOSSUTH KIADÓ ZRT.;2010.08.01;9491;természettudomány;608 +1116152226;Éjféltájt;9789630786249;EURÓPA KÖNYVKIADÓ KFT.;2008.08.01;1900;krimi;272 +1116152227;Az élet erőpróbái;9638227117;PARK KÖNYVKIADÓ KFT.;1994.08.01;1701;természettudomány;326 +1116152228;Az élő bolygó - a föld mai arculata;9635300077;PARK KÖNYVKIADÓ KFT.;1994.08.01;2081;természettudomány;324 +1116152229;Az első édenkert;9630267217;PARK KÖNYVKIADÓ KFT.;1989.08.01;1200;természettudomány;238 +1116152230;Az óceán;9789639693456;Mérték Kiadó;2007.08.01;11042;természettudomány;512 +1116152231;Az univerzum;963-967-800-7;IKAR Kiadó;2007.08.01;11042;természettudomány;512 +1116152232;A gyevi törvény - Tanulságos mesék, mondák Mátyás királyról;9789639581197;NAGYKÖNYV KIADÓ;2010.08.01;1511;mesekönyv;48 +1116152233;A nagyhatalmú sündisznócska;9789633468814; HOLNAP KIADÓ KFT.;2010.08.01;1615;mesekönyv;14 +1116152234;Aranykoporsó;9789630779180;EURÓPA KÖNYVKIADÓ KFT.;2005.08.01;808;szépirodalom;472 +1116152235;1848 - a magyar szabadságharcz 1848-49-ben;9789630960519;KOSSUTH KIADÓ ZRT.;2009.08.01;6641;történelem;476 +1116152236;A kőszívű ember fiai;9789636451004;EURÓPA KÖNYVKIADÓ KFT.;2006.08.01;758;szépirodalom;442 +1116152237;A .NET 4.0 és a Visual Studio 2010;9789639863170;SZAK KIADÓ KFT.;2010.08.01;8550;informatika;572 +1116152238;Java-fejtörők - Csapdák, buktatók és szélsőséges esetek;9789639637702;KISKAPU KIADÓ;2010.08.01;5220;informatika;270 +1116152239;Az XML-kézikönyv;9789639131712;EURÓPA KÖNYVKIADÓ KFT.;2005.08.01;10260;informatika;758 +1116152240;Java alapú webszolgáltatások - XML, SOAP, WSDL, UDDI;9789639301047;KISKAPU KIADÓ;2002.08.01;4741;informatika;644 +1116152241;Refactoring - Kódjavítás újratervezéssel;9639637130;Kiskapu Kiadó;2006.08.01;5525;informatika;372 +1116152242;Domain-Specific Languages;9780321712943;Addison-Wesley Professional;2010.10.03;8735;informatika;640 +1116152243;Design Patterns: Elements of Reusable Object-Oriented Software;9780201633610;Addison-Wesley Professional;1994.11.10;5980;informatika;416 +1116152244;Programtervezési minták - Újrahasznosítható elemek objektumközpontú programokhoz;9639301779;Kiskapu - Addison-Wesley;2004.08.01;5980;informatika;421 +1116152245;Nostradamus;9637905146;Média Kiadó;1991.08.01;260;;362 +1116152246;A Biblia kódja;9639069817;Vince Kiadó Kft.;1999.08.01;1495;;239 +1116152247;A vaskirály;33333333333;;;;; +1116152248;A megfojtott királyné;44444444444;;;;; +1116152249;Az ősi törvény;55555555555;;;;; +1116152250;Liliom és oroszlán;66666666666;;;;; +1116152251;Az országvesztő;77777777777;;;;; \ No newline at end of file diff --git a/ora9/proj1/untitled/src/hu/unideb/inf/pks/Konyv.java b/ora9/proj1/untitled/src/hu/unideb/inf/pks/Konyv.java new file mode 100644 index 0000000..f52c3f7 --- /dev/null +++ b/ora9/proj1/untitled/src/hu/unideb/inf/pks/Konyv.java @@ -0,0 +1,71 @@ +package hu.unideb.inf.pks; + +import java.time.LocalDate; + +public class Konyv { + private String konyvAzon; + private String cim; + private String isbn; + private String kiado; + private LocalDate kiadasDatuma; + private int ar; + private String tema; + private int oldalszam; + + public Konyv(String konyvAzon, String cim, String isbn, String kiado, LocalDate kiadasDatuma, int ar, String tema, int oldalszam) { + this.konyvAzon = konyvAzon; + this.cim = cim; + this.isbn = isbn; + this.kiado = kiado; + this.kiadasDatuma = kiadasDatuma; + this.ar = ar; + this.tema = tema; + this.oldalszam = oldalszam; + } + + public String getKonyvAzon() { + return konyvAzon; + } + + public String getTema() { + return tema; + } + + public int getOldalszam() { + return oldalszam; + } + + public int getAr() { + return ar; + } + + public LocalDate getKiadasDatuma() { + return kiadasDatuma; + } + + public String getKiado() { + return kiado; + } + + public String getIsbn() { + return isbn; + } + + public String getCim() { + return cim; + } + + @Override + public String toString() { + return "Konyv{" + + "konyvAzon='" + konyvAzon + '\'' + + ", tema='" + tema + '\'' + + ", oldalszam=" + oldalszam + + ", ar=" + ar + + ", kiadasDatuma=" + kiadasDatuma + + ", kiado='" + kiado + '\'' + + ", isbn='" + isbn + '\'' + + ", cim='" + cim + '\'' + + '}'; + } +} diff --git a/ora9/proj1/untitled/src/hu/unideb/inf/pks/Runner.java b/ora9/proj1/untitled/src/hu/unideb/inf/pks/Runner.java new file mode 100644 index 0000000..c74d75d --- /dev/null +++ b/ora9/proj1/untitled/src/hu/unideb/inf/pks/Runner.java @@ -0,0 +1,50 @@ +package hu.unideb.inf.pks; + +import java.io.File; +import java.io.FileNotFoundException; +import java.time.LocalDate; +import java.time.format.DateTimeFormatter; +import java.util.ArrayList; +import java.util.Scanner; + +public class Runner { + static void main() { + ArrayList konyvek = new ArrayList<>(); + + try { + Scanner sc = new Scanner(new File("konyv.txt")); + + while(sc.hasNextLine()){ + String line = sc.nextLine(); + String[] sp = line.split(";"); + + for(String item : sp){ + System.out.println(item); + } + + if(sp.length < 8){ + continue; + } + konyvek.add(new Konyv(sp[0], sp[1], sp[2], sp[3], LocalDate.parse(sp[4], DateTimeFormatter.ofPattern("yyyy.MM.dd")), Integer.parseInt(sp[5]), sp[6], Integer.parseInt(sp[7]))); + } + + }catch (FileNotFoundException e){ + System.out.println(e.getMessage()); + } + + System.out.println("cucc\n\n"); + System.out.println(konyvek.stream().count()); + konyvek.stream().filter(k -> k.getTema().equals("krimi")).forEach(k -> System.out.println(k)); + + System.out.println("\n\n methond reference"); + konyvek.stream().forEach(System.out::println); + + System.out.println(konyvek.stream().mapToInt(Konyv::getAr).sum()); + + System.out.println(konyvek.stream().mapToInt(Konyv::getAr).average().getAsDouble()); + + System.out.println("\ntema"); + konyvek.stream().map(Konyv::getTema).distinct().forEach(System.out::println); + + } +} diff --git a/ora9/proj1/untitled/untitled.iml b/ora9/proj1/untitled/untitled.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/ora9/proj1/untitled/untitled.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file