From ba8948806f2596330bcd5e6fff86988cff94d645 Mon Sep 17 00:00:00 2001 From: 1925458 <1925458tud.hs-mannheim.de> Date: Tue, 16 Apr 2024 15:24:31 +0200 Subject: [PATCH] Created the first Exercises for Variables and Primitives --- .classpath | 10 +++++++ .project | 17 +++++++++++ .settings/org.eclipse.core.resources.prefs | 2 ++ .settings/org.eclipse.jdt.core.prefs | 14 ++++++++++ README.md | 17 +++++++++++ bin/datatypes/Primitives1.class | Bin 0 -> 749 bytes bin/datatypes/Primitives2.class | Bin 0 -> 749 bytes bin/datatypes/Primitives3.class | Bin 0 -> 749 bytes bin/datatypes/Primitives4.class | Bin 0 -> 749 bytes bin/datatypes/Primitives5.class | Bin 0 -> 749 bytes bin/datatypes/Primitives6.class | Bin 0 -> 749 bytes bin/datatypes/Primitives8.class | Bin 0 -> 1279 bytes bin/datatypes/Strings1.class | Bin 0 -> 800 bytes bin/module-info.class | Bin 0 -> 148 bytes bin/variables/Variables1.class | Bin 0 -> 582 bytes bin/variables/Variables2.class | Bin 0 -> 597 bytes bin/variables/Variables3.class | Bin 0 -> 585 bytes src/datatypes/Primitives1.java | 25 +++++++++++++++++ src/datatypes/Primitives2.java | 24 ++++++++++++++++ src/datatypes/Primitives3.java | 28 +++++++++++++++++++ src/datatypes/Primitives4.java | 30 ++++++++++++++++++++ src/datatypes/Primitives5.java | 31 +++++++++++++++++++++ src/datatypes/Primitives6.java | 31 +++++++++++++++++++++ src/datatypes/Primitives7.java | 28 +++++++++++++++++++ src/datatypes/Primitives8.java | 28 +++++++++++++++++++ src/datatypes/Strings1.java | 24 ++++++++++++++++ src/module-info.java | 8 ++++++ src/variables/Variables1.java | 18 ++++++++++++ src/variables/Variables2.java | 19 +++++++++++++ src/variables/Variables3.java | 20 +++++++++++++ 30 files changed, 374 insertions(+) create mode 100644 .classpath create mode 100644 .project create mode 100644 .settings/org.eclipse.core.resources.prefs create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 README.md create mode 100644 bin/datatypes/Primitives1.class create mode 100644 bin/datatypes/Primitives2.class create mode 100644 bin/datatypes/Primitives3.class create mode 100644 bin/datatypes/Primitives4.class create mode 100644 bin/datatypes/Primitives5.class create mode 100644 bin/datatypes/Primitives6.class create mode 100644 bin/datatypes/Primitives8.class create mode 100644 bin/datatypes/Strings1.class create mode 100644 bin/module-info.class create mode 100644 bin/variables/Variables1.class create mode 100644 bin/variables/Variables2.class create mode 100644 bin/variables/Variables3.class create mode 100644 src/datatypes/Primitives1.java create mode 100644 src/datatypes/Primitives2.java create mode 100644 src/datatypes/Primitives3.java create mode 100644 src/datatypes/Primitives4.java create mode 100644 src/datatypes/Primitives5.java create mode 100644 src/datatypes/Primitives6.java create mode 100644 src/datatypes/Primitives7.java create mode 100644 src/datatypes/Primitives8.java create mode 100644 src/datatypes/Strings1.java create mode 100644 src/module-info.java create mode 100644 src/variables/Variables1.java create mode 100644 src/variables/Variables2.java create mode 100644 src/variables/Variables3.java diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..57bca72 --- /dev/null +++ b/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..9c23653 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + javalings + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..8c9943d --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=17 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=17 diff --git a/README.md b/README.md new file mode 100644 index 0000000..8e652dd --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# javalings + +## About + +The javalings repository is attempting to recreate the rustlings programm, +which is an introduction into the rust language. Respectivly, javalings +attempts to recreate that form of introduction for the java language. This +ressource is primarilly meant to be an additional ressource for students of the +university of applied science mannheim, however anyone interested in +understanding the java language can and should be able to follow this, as the +course should be as newbie friendly as possible. + +## Work in Progress + +javalings is a Work in Progress, as time alloted to this project is minimal and +does not enjoy priority in my project list at this moment. PRs may therefore +also take a while to review diff --git a/bin/datatypes/Primitives1.class b/bin/datatypes/Primitives1.class new file mode 100644 index 0000000000000000000000000000000000000000..fd8e689483ef46fa5a519c1ca1d1e7513117fb00 GIT binary patch literal 749 zcmdr~Jx>Bb5Pi!xC&-C{+MOL(NNhzdG+GfgK}n3&-m$?Yce`Y7A@Z}VNHo#jA7z|F zA{G?ZHZ%KX-h5=|eSE&W0XV^K9w~-epIdIHBN4Z5jEtm}6A>TgkzsI$e8O8HSA*8I zKNNvw$Q?^1?I}aL(d;o~&UIfnNTXOn7CDAWM=EhOj(lNmxgQFKYDWh=>~SL#ya;CO zql_80J1d8`sd2=mVyHJBI?E-x)<`vIH+y+((5PkN!WeA|*ktVNP8kvFa3cC%prert zxs_UZBco}06d!p`@yQFgQrddH@P5cvd)%8WwseZqKXCqO9|taK$vNvJj>f9*XK=cD zYyxp9lMB1QbaRj#1$!WYkj8)%y+{~j^MqRD8Tst~429=;+98{yK?Q4MOWy?YWkN-) kqe79Sc%K*v&v}J=U#-rt^-d^-Wry;-LyDp#t$A+e3)TL{x&QzG literal 0 HcmV?d00001 diff --git a/bin/datatypes/Primitives2.class b/bin/datatypes/Primitives2.class new file mode 100644 index 0000000000000000000000000000000000000000..41b868d4485605d59cbaaaed8eea2d5308e5db5b GIT binary patch literal 749 zcmdr~Jx>Bb5Pi!xC&-C{+MOL(NMb2!q0x${2})wD_KpoMx!Was3z45?MWTuJ{wU)d z60xALwwc*C^X4Nv@8k334ZsO@^GGq&`rL9m9f`PgV`L<)oQU`^j|_u5OU_v*aWqzaKZDcN zV-tu=nOxZYrJIA~DA)rDgfs@E=taUHnlDl29w-EU(D-un#_oIw+ zNW_A|+Gb|oyxBLKo%iwi@&@1pds(CyDt&IbosLA@yfHG8R!&5Gn1#dO4f%vOL#_tR z>)ucVmSOE!Drrv{(zSY*!8zA`;UbNE0U4|@l-g2>t8vs5=9c$D!BB4NfQMafWP%q( z$3DuKVW+)vc#DK1E)_$y_RwBFqGOFzgI2wp#U_nf5*Nm3lfxEcXLrhoScenQ_X8b` zWXP@5${!g`)1&yvck@qvz?IV0?+O2>*=nErlf^6D{PYh!|5V3?hf1=}Dw(6U>iZeo zjvkvpT*_p_-Y?%ABul|Q$ROk~AVnuK2E{C)CS^uB)0iRmJf~fX2@N<{r&#!Ipu9mS lk0MG`NiH`?GU;<);oXBb5Pi$n!HIIBpmt{m7SdRWT4=N)YJ!p&tG#1`OYU~b-a_POS&?X>y+6u0 zM~GNZSli6Zo0)wx*?FH|ukQd(vF9MeQ0sHc?Q|rP)~%7Tv~nVnBL_JKZ^$RS6>&9a z-2_7sT86@jRMMU?WE;&ML+(QNg^MgoW#my{sC1+f*W)-4=8gxEV5oL<$fF)NGR2Ez z&OXV6VW+clc$2Y%GyQOD8W5v literal 0 HcmV?d00001 diff --git a/bin/datatypes/Primitives5.class b/bin/datatypes/Primitives5.class new file mode 100644 index 0000000000000000000000000000000000000000..293799ba1e0b17e6f11a0506ac8e7e43ab9f417c GIT binary patch literal 749 zcmdr~Jx>Bb5Pi!xC&-C{+MOL(NM$2xq0x${2})wD_KpoMx!Was3z45?MWTuJ{wU)d z60xALwwc*C^X4Nv@8k334ZsO@^GGq&`rL9m9f`PgV`L<)oQU`^j|_u5OU_v*aWqzaKZDcN zV-tu=nOxZYrJIA~DA)rDgfs@E=taUHnBb5Pi!xC&-C{+MOL(NM|8xq0x${2})wD_KpoMx!Was3z45?MWTuJ{wU)d z60xALwwc*C^X4Nv@8k334ZsO@^GGq&`rL9m9f`PgV`L<)oQU`^j|_u5OU_v*aWqzaKZDcN zV-tu=nOxZYrJIA~DA)rDgfs@E=taUHnYx15PcIu_k)y_l(v))$-Pu52XaB8YJdX>P7xqAR6?A*8#i^eYe!xu&=Wrk zsYr0=M^JlF=dbhc0G{DNfEr>;UTO&r!CYj2M0})646D3CDB-5!VZy_#SLgeGZi$sZmI@X3Uv=Q1D!hSO1 zSZ6AZK8sWuW2Z$IOx_A9CemriByn`MK+RR+EQ@P_cf|;?+Q4<(;1=e9% z>RctxvbYwQC?Oas-)Ex`b}vu#k3qY8|B4^tE@9{Y(z6i>@u3~NRJ~?rvG?abeDbJV z9PEHy&p!@uB;KhNjsa(nr#TRRL-?T;e?{X5pVrXiSk{#FYaAQX?-;kx;w-{CZqE=N h{)Mnnfv`G7sBvG6E!?T>+pg%_zUU*|}HT)DEGPL_F*jIpks|xgZLnW6hmpqr#y(b8U&ZU zp$IL*+L2V!o-icqjV?p#RQH94ByxGAvBpqrOC>HQqn0S*y{_V3X#o3TMV>lf@QekJrkGSVvRQ_d`7z%ZOX4 zl|MF`Mvvk{-^)2%Syu)D*2(4< q4de?H<*fea=F76w)zEylnG N7G`ANXaF-H1OO*q9ZvuN literal 0 HcmV?d00001 diff --git a/bin/variables/Variables1.class b/bin/variables/Variables1.class new file mode 100644 index 0000000000000000000000000000000000000000..46e8dd4989c1f1a49498233def8004dd94881d18 GIT binary patch literal 582 zcma)3Jx>Bb5Pi!xCjug%c54R|UT8&aj8;Sol*Cvq#|D?&?UKENpW}b9BGE*9f0S_! zIcZ3=nc125=FP``e!ac}ILA>QDTew&SS3cj4BcV!>gJJQs7}Q~xW3R6_jWXuUc`_) zQ(8qA4Cz*T$dI`-W9cA`VhLH~7%F|G<;^@8NqZM-GSvFU6Mmw+PG+Jf6*4sY+j{p% zHxNn_-g@kBW*9_P=}E6W%wvx_ZGbCljV)lG;rU)$85(~f$J{f)O!*>GM)R39G)xel za;F#u!lz{;?g_0;#7C0<)c9tl-tYC+141)@G$d-NxO-xzME!%J6gCRwl|qWL3Bb5Pf@q2Pb-nfZClMP7ceZ{FMa`22c(2XKxf8x})l&W+^#P(*$&eYI?48A@Y5=YGi5(7)}EMG!M= zok=C*3x-U+(PPM7>Va^OL7|8owiw)wRN`hf=?in8Xfl*LI^bcdyh>){k&GB>olSqY zNq54fBE0_8S@+P5ja0*Sqi17}ep&-p#%PnrKEv~aG9uF9TnxNGPo^^DvDC_&8coei zqEpW)OpOR+lwn%=LAL}fdeH^Q+7$WZ8Tnjuf&9x7cE~0$h_Fqz_)|cB nhoS;@;Zi0cH>o12bKX#TESDFkd{AUzt>7*dEXpz*EV09Hip`Tt literal 0 HcmV?d00001 diff --git a/bin/variables/Variables3.class b/bin/variables/Variables3.class new file mode 100644 index 0000000000000000000000000000000000000000..52aa73efabc996439097e435eb4ae31c8fadda0d GIT binary patch literal 585 zcma)3Jx>Bb5Pi#sa3=~Ppmt{m6kb6mYGb4#TA(DxYB@Hry17`=28!Zi!_`9ve;rMcBK;6^XWjC+gOvK+|>aO6Xl;~#*SsgQ0s2G zyG^=NE*0VRhwgfZo;6a9+Kqk=dvwzpxH3kYJoXu$?vxRc4i{qR1$sJ@A-7U1Z)P+t zGmTC?*Rf_UIy{Vo7jUJt^#;QG9kSZvUb2+y1Y>S^V1@Yy*NR8`H_b%})!3{WL$$u? zbqsD#&rKjYGWM^SSQoWU;wR%6