From 632d6a4e438565b3530f6e00db5e5a35ff689280 Mon Sep 17 00:00:00 2001 From: yckta Date: Sat, 16 Mar 2024 14:28:25 +0330 Subject: [PATCH 01/10] added the project file --- Answers/40230212039/.idea/.gitignore | 2 ++ Answers/40230212039/.idea/description.html | 1 + Answers/40230212039/.idea/encodings.xml | 6 ++++++ Answers/40230212039/.idea/misc.xml | 12 ++++++++++++ Answers/40230212039/.idea/modules.xml | 8 ++++++++ Answers/40230212039/.idea/project-template.xml | 3 +++ Answers/40230212039/.idea/vcs.xml | 6 ++++++ Answers/40230212039/src/com/company/Main.java | 8 ++++++++ Answers/40230212039/untitled.iml | 12 ++++++++++++ 9 files changed, 58 insertions(+) create mode 100644 Answers/40230212039/.idea/.gitignore create mode 100644 Answers/40230212039/.idea/description.html create mode 100644 Answers/40230212039/.idea/encodings.xml create mode 100644 Answers/40230212039/.idea/misc.xml create mode 100644 Answers/40230212039/.idea/modules.xml create mode 100644 Answers/40230212039/.idea/project-template.xml create mode 100644 Answers/40230212039/.idea/vcs.xml create mode 100644 Answers/40230212039/src/com/company/Main.java create mode 100644 Answers/40230212039/untitled.iml diff --git a/Answers/40230212039/.idea/.gitignore b/Answers/40230212039/.idea/.gitignore new file mode 100644 index 0000000..5c98b42 --- /dev/null +++ b/Answers/40230212039/.idea/.gitignore @@ -0,0 +1,2 @@ +# Default ignored files +/workspace.xml \ No newline at end of file diff --git a/Answers/40230212039/.idea/description.html b/Answers/40230212039/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ b/Answers/40230212039/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/Answers/40230212039/.idea/encodings.xml b/Answers/40230212039/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ b/Answers/40230212039/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Answers/40230212039/.idea/misc.xml b/Answers/40230212039/.idea/misc.xml new file mode 100644 index 0000000..59ad480 --- /dev/null +++ b/Answers/40230212039/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Answers/40230212039/.idea/modules.xml b/Answers/40230212039/.idea/modules.xml new file mode 100644 index 0000000..3007dae --- /dev/null +++ b/Answers/40230212039/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Answers/40230212039/.idea/project-template.xml b/Answers/40230212039/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ b/Answers/40230212039/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Answers/40230212039/.idea/vcs.xml b/Answers/40230212039/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/Answers/40230212039/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Answers/40230212039/src/com/company/Main.java b/Answers/40230212039/src/com/company/Main.java new file mode 100644 index 0000000..d9d1a8b --- /dev/null +++ b/Answers/40230212039/src/com/company/Main.java @@ -0,0 +1,8 @@ +package com.company; + +public class Main { + + public static void main(String[] args) { + // write your code here + } +} diff --git a/Answers/40230212039/untitled.iml b/Answers/40230212039/untitled.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ b/Answers/40230212039/untitled.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + From 13562f54f4f4322645902a6c019a27344ffefd70 Mon Sep 17 00:00:00 2001 From: yckta Date: Sat, 16 Mar 2024 15:15:06 +0330 Subject: [PATCH 02/10] removed the wrong file --- Answers/40230212039/.idea/.gitignore | 2 -- Answers/40230212039/.idea/description.html | 1 - Answers/40230212039/.idea/encodings.xml | 6 ------ Answers/40230212039/.idea/misc.xml | 12 ------------ Answers/40230212039/.idea/modules.xml | 8 -------- Answers/40230212039/.idea/project-template.xml | 3 --- Answers/40230212039/.idea/vcs.xml | 6 ------ Answers/40230212039/src/com/company/Main.java | 8 -------- Answers/40230212039/untitled.iml | 12 ------------ 9 files changed, 58 deletions(-) delete mode 100644 Answers/40230212039/.idea/.gitignore delete mode 100644 Answers/40230212039/.idea/description.html delete mode 100644 Answers/40230212039/.idea/encodings.xml delete mode 100644 Answers/40230212039/.idea/misc.xml delete mode 100644 Answers/40230212039/.idea/modules.xml delete mode 100644 Answers/40230212039/.idea/project-template.xml delete mode 100644 Answers/40230212039/.idea/vcs.xml delete mode 100644 Answers/40230212039/src/com/company/Main.java delete mode 100644 Answers/40230212039/untitled.iml diff --git a/Answers/40230212039/.idea/.gitignore b/Answers/40230212039/.idea/.gitignore deleted file mode 100644 index 5c98b42..0000000 --- a/Answers/40230212039/.idea/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Default ignored files -/workspace.xml \ No newline at end of file diff --git a/Answers/40230212039/.idea/description.html b/Answers/40230212039/.idea/description.html deleted file mode 100644 index db5f129..0000000 --- a/Answers/40230212039/.idea/description.html +++ /dev/null @@ -1 +0,0 @@ -Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/Answers/40230212039/.idea/encodings.xml b/Answers/40230212039/.idea/encodings.xml deleted file mode 100644 index 97626ba..0000000 --- a/Answers/40230212039/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Answers/40230212039/.idea/misc.xml b/Answers/40230212039/.idea/misc.xml deleted file mode 100644 index 59ad480..0000000 --- a/Answers/40230212039/.idea/misc.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/Answers/40230212039/.idea/modules.xml b/Answers/40230212039/.idea/modules.xml deleted file mode 100644 index 3007dae..0000000 --- a/Answers/40230212039/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/Answers/40230212039/.idea/project-template.xml b/Answers/40230212039/.idea/project-template.xml deleted file mode 100644 index 1f08b88..0000000 --- a/Answers/40230212039/.idea/project-template.xml +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/Answers/40230212039/.idea/vcs.xml b/Answers/40230212039/.idea/vcs.xml deleted file mode 100644 index b2bdec2..0000000 --- a/Answers/40230212039/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Answers/40230212039/src/com/company/Main.java b/Answers/40230212039/src/com/company/Main.java deleted file mode 100644 index d9d1a8b..0000000 --- a/Answers/40230212039/src/com/company/Main.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.company; - -public class Main { - - public static void main(String[] args) { - // write your code here - } -} diff --git a/Answers/40230212039/untitled.iml b/Answers/40230212039/untitled.iml deleted file mode 100644 index d5c0743..0000000 --- a/Answers/40230212039/untitled.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - From d4da56c1305990c0d884985594d6d08799601957 Mon Sep 17 00:00:00 2001 From: yckta Date: Mon, 18 Mar 2024 20:57:19 +0330 Subject: [PATCH 03/10] added the project file --- Answers/.idea/.gitignore | 3 +++ Answers/.idea/description.html | 1 + Answers/.idea/encodings.xml | 6 ++++++ Answers/.idea/misc.xml | 12 ++++++++++++ Answers/.idea/modules.xml | 9 +++++++++ Answers/.idea/project-template.xml | 3 +++ Answers/.idea/vcs.xml | 6 ++++++ Answers/Answers.iml | 12 ++++++++++++ Answers/src/com/company/Main.java | 8 ++++++++ 9 files changed, 60 insertions(+) create mode 100644 Answers/.idea/.gitignore create mode 100644 Answers/.idea/description.html create mode 100644 Answers/.idea/encodings.xml create mode 100644 Answers/.idea/misc.xml create mode 100644 Answers/.idea/modules.xml create mode 100644 Answers/.idea/project-template.xml create mode 100644 Answers/.idea/vcs.xml create mode 100644 Answers/Answers.iml create mode 100644 Answers/src/com/company/Main.java diff --git a/Answers/.idea/.gitignore b/Answers/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/Answers/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/Answers/.idea/description.html b/Answers/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ b/Answers/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/Answers/.idea/encodings.xml b/Answers/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ b/Answers/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Answers/.idea/misc.xml b/Answers/.idea/misc.xml new file mode 100644 index 0000000..dc47333 --- /dev/null +++ b/Answers/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Answers/.idea/modules.xml b/Answers/.idea/modules.xml new file mode 100644 index 0000000..7ac30c7 --- /dev/null +++ b/Answers/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Answers/.idea/project-template.xml b/Answers/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ b/Answers/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Answers/.idea/vcs.xml b/Answers/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/Answers/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Answers/Answers.iml b/Answers/Answers.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ b/Answers/Answers.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/Answers/src/com/company/Main.java b/Answers/src/com/company/Main.java new file mode 100644 index 0000000..d9d1a8b --- /dev/null +++ b/Answers/src/com/company/Main.java @@ -0,0 +1,8 @@ +package com.company; + +public class Main { + + public static void main(String[] args) { + // write your code here + } +} From c85b9118ba210e6401debcadf97b0f69e717048d Mon Sep 17 00:00:00 2001 From: yckta Date: Mon, 18 Mar 2024 21:08:09 +0330 Subject: [PATCH 04/10] deleted the wrong file --- Answers/.idea/.gitignore | 3 --- Answers/.idea/description.html | 1 - Answers/.idea/encodings.xml | 6 ------ Answers/.idea/misc.xml | 12 ------------ Answers/.idea/modules.xml | 9 --------- Answers/.idea/project-template.xml | 3 --- Answers/.idea/vcs.xml | 6 ------ Answers/Answers.iml | 12 ------------ Answers/src/com/company/Main.java | 8 -------- 9 files changed, 60 deletions(-) delete mode 100644 Answers/.idea/.gitignore delete mode 100644 Answers/.idea/description.html delete mode 100644 Answers/.idea/encodings.xml delete mode 100644 Answers/.idea/misc.xml delete mode 100644 Answers/.idea/modules.xml delete mode 100644 Answers/.idea/project-template.xml delete mode 100644 Answers/.idea/vcs.xml delete mode 100644 Answers/Answers.iml delete mode 100644 Answers/src/com/company/Main.java diff --git a/Answers/.idea/.gitignore b/Answers/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/Answers/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/Answers/.idea/description.html b/Answers/.idea/description.html deleted file mode 100644 index db5f129..0000000 --- a/Answers/.idea/description.html +++ /dev/null @@ -1 +0,0 @@ -Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/Answers/.idea/encodings.xml b/Answers/.idea/encodings.xml deleted file mode 100644 index 97626ba..0000000 --- a/Answers/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Answers/.idea/misc.xml b/Answers/.idea/misc.xml deleted file mode 100644 index dc47333..0000000 --- a/Answers/.idea/misc.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/Answers/.idea/modules.xml b/Answers/.idea/modules.xml deleted file mode 100644 index 7ac30c7..0000000 --- a/Answers/.idea/modules.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Answers/.idea/project-template.xml b/Answers/.idea/project-template.xml deleted file mode 100644 index 1f08b88..0000000 --- a/Answers/.idea/project-template.xml +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/Answers/.idea/vcs.xml b/Answers/.idea/vcs.xml deleted file mode 100644 index 6c0b863..0000000 --- a/Answers/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Answers/Answers.iml b/Answers/Answers.iml deleted file mode 100644 index d5c0743..0000000 --- a/Answers/Answers.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/Answers/src/com/company/Main.java b/Answers/src/com/company/Main.java deleted file mode 100644 index d9d1a8b..0000000 --- a/Answers/src/com/company/Main.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.company; - -public class Main { - - public static void main(String[] args) { - // write your code here - } -} From 9d3a27adb0c03484d86a2e65f4066b51e07d4c07 Mon Sep 17 00:00:00 2001 From: yckta Date: Tue, 19 Mar 2024 14:13:47 +0330 Subject: [PATCH 05/10] added the first method --- Answers/.idea/.gitignore | 3 ++ Answers/.idea/description.html | 1 + Answers/.idea/misc.xml | 9 ++++ Answers/.idea/modules.xml | 9 ++++ Answers/.idea/project-template.xml | 3 ++ Answers/.idea/vcs.xml | 6 +++ .../untitled104/com/company/Main.class | Bin 0 -> 2037 bytes Answers/src/com/company/Main.java | 45 ++++++++++++++++++ Answers/untitled104.iml | 12 +++++ 9 files changed, 88 insertions(+) create mode 100644 Answers/.idea/.gitignore create mode 100644 Answers/.idea/description.html create mode 100644 Answers/.idea/misc.xml create mode 100644 Answers/.idea/modules.xml create mode 100644 Answers/.idea/project-template.xml create mode 100644 Answers/.idea/vcs.xml create mode 100644 Answers/out/production/untitled104/com/company/Main.class create mode 100644 Answers/src/com/company/Main.java create mode 100644 Answers/untitled104.iml diff --git a/Answers/.idea/.gitignore b/Answers/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/Answers/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/Answers/.idea/description.html b/Answers/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ b/Answers/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/Answers/.idea/misc.xml b/Answers/.idea/misc.xml new file mode 100644 index 0000000..4a32b7a --- /dev/null +++ b/Answers/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/Answers/.idea/modules.xml b/Answers/.idea/modules.xml new file mode 100644 index 0000000..7ac30c7 --- /dev/null +++ b/Answers/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Answers/.idea/project-template.xml b/Answers/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ b/Answers/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Answers/.idea/vcs.xml b/Answers/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/Answers/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Answers/out/production/untitled104/com/company/Main.class b/Answers/out/production/untitled104/com/company/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..36be9ac4c0903627cb9835221f6e5bdd70a89f43 GIT binary patch literal 2037 zcmaJ?-A^1<6#w1*V3uWIVSyG(t=kq_7D~5PtQBZ2T}7}9R2S$6T6QwNZU4C<#CseZk!SbnM(V>wJEz) z*>^3DPMlUrcuk z_Thqti#qy|KAJ^88i6Ly$*xIv+;!!qK%_stn2nhcI;SK$Z**do; ziEc*66}%yEvMAS$tYa6XchB_JNR>Tldu4&^brN|zk~-!a@g{~fyrttB-ev#=r6rz>e%x@JR^HJu;-_<8J_&&_<@pVP3w8Xf<4p|j3Q#SQ zb(RT7LZLEKDJ~iAoLsWVN#>k_v=*dms(qCi@zzY{AesBG^P>X7xxp1E2bM@%5vC;SD@KvtJoEUth&XlfUeFDdCg2qVSQSbd}lP|=zY;o905I^sq_NR zrMpUh+v^gA?X6jv$c|F)-rh2^Qi0kP!r7N=<|;p(q<= z4a)+3$KtIQh6Z-png18%pbTQhS(bH({YO+(dytBd=6L0LOZ6qctXD(_UO@azB7||S z>X=O2=BiieEZ*a;QMCv;w`lVzjWv+>+cvah^9~ZfqVvHvPQF0Toq-*k$tnIh^3`T~ za0k6Jm$-~X!q=jm(V>^$;o?wdbhvf=TXgxv!|#zG;nS(dTk~H;#q(Ex4uyxp!>y_1 zt$AOsJ3__5?nqU$C!na>rl??dp!`R7B+MsJAKJx0cZACxE(5>d>Nc+aME}En%rhML zK%9wcBBi4X%}AkzlP-Y){uHht$=KVGLkI4Yeng2ioI)8r_!6h_l=L%dJjXfg;=G@` zNoWLM5btAx*<7cMfNIB&_yCi= 'A' && firstNameChar[i] <= 'Z'){ + firstNameChar[i]= (char) (firstNameChar[i]+32); + } + + } + firstNameChar[0]= (char) (firstNameChar[0]-32); + + for (int i = 0 ; i < lastNameChar.length ; i++){ + if (lastNameChar[i] >= 'A' && lastNameChar[i] <= 'Z'){ + lastNameChar[i]= (char) (lastNameChar[i]+32); + } + + } + lastNameChar[0]= (char) (lastNameChar[0]-32); + + fullNameStatic = String.valueOf(firstNameChar) + " " + String.valueOf(lastNameChar); + return fullNameStatic; + + } + + public static void main(String[] args) { + + //first function + System.out.println("Full name : " + fullName()); + + } +} diff --git a/Answers/untitled104.iml b/Answers/untitled104.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ b/Answers/untitled104.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + From 88f9d8f124ce8af47669fa4f7517359299c9850e Mon Sep 17 00:00:00 2001 From: yckta Date: Tue, 19 Mar 2024 14:18:27 +0330 Subject: [PATCH 06/10] added the second method --- .../untitled104/com/company/Main.class | Bin 2037 -> 2515 bytes Answers/src/com/company/Main.java | 23 ++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/Answers/out/production/untitled104/com/company/Main.class b/Answers/out/production/untitled104/com/company/Main.class index 36be9ac4c0903627cb9835221f6e5bdd70a89f43..801e1c725d16c6e15c34a7dd723d512c38433c20 100644 GIT binary patch delta 1090 zcmYk4-)~c87{@>FX}gv~S+|Zdw&HRKt3qJ|=M=Uv9S(5HR(}i_tO}Mo%TB%Yt zm}x_JK~N0acIUr+wAEh;O*PNCl=vdbWlM72Zx8>{uY{2COpHZ?b3k5=wj38?uPn#{ zq@$XlWg|@guW-tIu+07adSG0xgG~vV*UAh3^&rq@H)!#X8-=%rT-8eJ>yLiBMctk7rREcbVj*=56OT zr|M#4H0TFTD{?gMJEk-wq=Iiat0>I0k~1_tRllYvsVJG?%SXwJWB0#A9uqfv9y z4;Xq8-&-M?e0!C|ou>_RPaQ*n!o5-q0e09YwR@yfFWa<^w4i5sT}$g@gnl7f8UJtF$*y0*O2YVc{m+fnjol9+&ZiqK;m^Mv95ndkq(70>g0{+wrC<#yK@ z!CYsg!6*o<1%33HU*~v(_k+`y4*v&zd3I&jfO~f`OJEQAvo4iXDnvlJC@{S!FE*wi4JYfxSv%NeQklzvLR%>G%)i Cmb20T delta 585 zcmYk2y-yTj5XOJ+-rer8F1O|m41NSxs_|l2Wv0b*8cmMCH_1GamJ%U*+z*Jm8_jqqtx?+DLDA z&l*xDFj*>w<`Izub+H8ffiZYv^?LQiaIF%C)zIN-w4LcP^U-dmw^fRq=8UFEOE7~i zdodcY_Z=TpE{;%kNY?v@hq Date: Tue, 19 Mar 2024 14:27:36 +0330 Subject: [PATCH 07/10] added the third method --- .../untitled104/com/company/Main.class | Bin 2515 -> 2845 bytes Answers/src/com/company/Main.java | 24 ++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/Answers/out/production/untitled104/com/company/Main.class b/Answers/out/production/untitled104/com/company/Main.class index 801e1c725d16c6e15c34a7dd723d512c38433c20..3f795a1703c9d893a0a616a367a8a5d9c586c200 100644 GIT binary patch delta 1174 zcmYL|&2Lm?6vlt|&UEH>dfQH?Ohu}AX<7}_T8B1*w80h%NP&(ZU*bn~U@msFo#ISK ztfHgh*TR)I#)WZVG$FbYNNQ7)#sw=ASH^$Bjay?X_`L7Xm`u(&bKdjuoadb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rz&=uk`ll0trIpoMwe#U^WO%OWSCSw$ko5=-|oU_dy%pJ_q0Z2jyU~{`xk^n o18u^mHy*Ajw#af_ev6Q9s4DN;S=ZijZIK1#L(1LZ9uKJd4QI1?V*mgE diff --git a/Answers/src/com/company/Main.java b/Answers/src/com/company/Main.java index 7d08ad0..7940916 100644 --- a/Answers/src/com/company/Main.java +++ b/Answers/src/com/company/Main.java @@ -6,6 +6,7 @@ public class Main { static String fullNameStatic = ""; static String phoneNumberStatic = ""; + static String idStatic = ""; public static String fullName(){ System.out.println("enter your name : "); @@ -55,6 +56,21 @@ public static String phoneNumber(){ return null; } + public static String userId(){ + + Scanner input = new Scanner(System.in); + while (true){ + String id = input.nextLine(); + char[] idChar = id.toCharArray(); + if ( idChar.length <= 13 && idChar.length >= 3){ + idStatic = String.valueOf(idChar); + return String.valueOf(idChar); + } else + System.out.println("Wrong entry. Try again."); + } + + } + public static void main(String[] args) { //first function @@ -64,5 +80,13 @@ public static void main(String[] args) { System.out.println("enter your phone number : "); System.out.println("phone number : " + phoneNumber()); + //third function + System.out.println("enter your ID : "); + System.out.println("ID : " + userId()); + + + + + } } From 572d0ee4e3b97b74ac77a0514a306c1243757428 Mon Sep 17 00:00:00 2001 From: yckta Date: Tue, 19 Mar 2024 14:35:17 +0330 Subject: [PATCH 08/10] added the fourth method --- .../untitled104/com/company/Main.class | Bin 2845 -> 3792 bytes Answers/src/com/company/Main.java | 38 +++++++++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/Answers/out/production/untitled104/com/company/Main.class b/Answers/out/production/untitled104/com/company/Main.class index 3f795a1703c9d893a0a616a367a8a5d9c586c200..889e81509f66b6db879152758cee31431ca2760b 100644 GIT binary patch delta 1994 zcmZuy?Nd}$82_E!yRWXw0*jDf7X}no1%%QOw9)VlB$Qn(6a}wxVV8FA>h4|9%GQ*! zH!Hnaso9HJWKA=vGs@8P@}W=7G}9l@m%jC-sgLEL_Pb}Ick> zfLlM5)e;nz)OSmDLNi8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V6l1=;9 z#r|rz7~Id6oR7Ig?kw*du<#~#mAZ4Zz9`pAa;j+`1G~s?D>K{3TRUp7o7g&tp;IC7kpLGq zk!4AbmsQTNug1KFRrX|GH?#~K?D-c}SxQL2S(2T-jCm%=BM85RZ3zpz(=3h;$mg$T zZ&oj%JI%GOd3)Eq2hupGyz2*5O8S6ao<|=k>F25kQO^qualz|H7RD5&8K)!h|3U)_ z#U$YJ47@{7im()|vba#!n#Xy;i?J|~#PKi5e+@G@NA073mXVi~ysYF^C9f-a1GgAu MXT)vX Date: Tue, 19 Mar 2024 14:45:00 +0330 Subject: [PATCH 09/10] added the fifth method --- .../untitled104/com/company/Main.class | Bin 3792 -> 4416 bytes Answers/src/com/company/Main.java | 15 +++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/Answers/out/production/untitled104/com/company/Main.class b/Answers/out/production/untitled104/com/company/Main.class index 889e81509f66b6db879152758cee31431ca2760b..89b48a4c91763ce310326ab9dd55ae5544724ab4 100644 GIT binary patch delta 1678 zcmY*Z?^9G&7=F&(yL&IYi@*{>3gd+Ul_fxE#sR{tDF+l`2IvQ+=mLu(%P#B!g_fIS ziKSWHe%bHrhgn&$km8nRWnY?UrVsrAeQNsH$0CHDa~5dY+54Vz&w0=DKF|BU=l)V~ zy~zF3V)7b*2K+efzUbKEgN8~I_Y1%W2WoxL@sJl)=oF~k)O;u~7N`sb!UrnbN22}V z1NBYzdaWee2d8v(VUKj(E3k8u-C`8jorcdY)z%fbQG_?%1**6*rwFCx(J{YJq z(PRJWD9jIf(IAP{aE-=-(WYJ>(&S#mzDv&+ z!}cECFJktj-t8LoVhoSkf9jh(<2Y>Kh!>CJ3A@c+FLe`eT-;;7ilJsj1Z%j0UX$pIC(3kv?m1-0BaH za5Xj(t22=xmT;Sx6>thsA>l6xly*i&t)4*GiUtEc2Q8i)>u(CkvnqL3SY=N-&k5*4 zxH(G-q)WLeB6V`}8-dLK9Z;*+?0<}P`gZ~)cEHHBtISOCgMGKTx6uSiu*3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S)UriC-qAvmu%#!$;oB>z&<&WOQw zq{d;0LBf)77Uz^Yaz7`Rdh@Cmu=-HZkCnhnjNn&rRl@gSO+VHTXE*%IR`sK1I9oe( zCp_dg{X=c(LnGrJJ~u0=9n0px!RZ9h#9o_`ffh_hD+;)E3%G5i+_!Shppskje-Ep0 zUeCgd3&TrXq?L2Sf-Sw6txTaZ^HY3p5bDJ;wbw$|@ diff --git a/Answers/src/com/company/Main.java b/Answers/src/com/company/Main.java index 3d0e4d8..a9129b7 100644 --- a/Answers/src/com/company/Main.java +++ b/Answers/src/com/company/Main.java @@ -102,6 +102,17 @@ public static String[] getInterests(){ return finalInterests; } + public static String userFullInformation(){ + String s1 = "Hello! My name is " + fullNameStatic + ".My ID is " + idStatic + ". Here are some of my interests:"; + String s2 = ""; + for (int i = 0 ; i < lenStatic ; i++){ + s2 = s2 + "\n"; + s2 = s2 + (i+1) + ". " + finalInterestsStatic[i] ; + } + String s3 = "You can reach me via my phone number " + phoneNumberStatic; + return s1 + s2 + "\n" + s3; + } + public static void main(String[] args) { //first function @@ -121,6 +132,10 @@ public static void main(String[] args) { System.out.println("if you want to enter less than 10 interests, you have to enter \"end\" when you are finished."); System.out.println(Arrays.toString(getInterests())); + //fifth function + //System.out.println(userFullInformation()); + String userInfo = userFullInformation(); + } } From fa849d132846cb278628f5141b4a594639e1a656 Mon Sep 17 00:00:00 2001 From: yckta Date: Thu, 21 Mar 2024 23:16:13 +0330 Subject: [PATCH 10/10] sixth and seventh method added --- Answers/.idea/.name | 1 + .../untitled104/com/company/Main.class | Bin 4416 -> 5862 bytes Answers/src/com/company/Main.java | 62 ++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 Answers/.idea/.name diff --git a/Answers/.idea/.name b/Answers/.idea/.name new file mode 100644 index 0000000..002da1d --- /dev/null +++ b/Answers/.idea/.name @@ -0,0 +1 @@ +Main.java \ No newline at end of file diff --git a/Answers/out/production/untitled104/com/company/Main.class b/Answers/out/production/untitled104/com/company/Main.class index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_696{DR!}tyD=aAcnJecWe`g_<|{egZ5;4+j%b>_ zR9!Bo&N&o{FLkxkOyDb>Z2(_;ACPP*ugR-wl`QdkU`)kZs9gw_z!V8`m6u| diff --git a/Answers/src/com/company/Main.java b/Answers/src/com/company/Main.java index a9129b7..6298905 100644 --- a/Answers/src/com/company/Main.java +++ b/Answers/src/com/company/Main.java @@ -113,6 +113,48 @@ public static String userFullInformation(){ return s1 + s2 + "\n" + s3; } + public static String informationEncoder (String userInfo, int shift) { + char[] informationChar = userInfo.toCharArray(); + + for (int i = 0; i < informationChar.length; i++){ + char currentChar = informationChar[i]; + + if (Character.isLetter(currentChar)) { + char shifting; + if (Character.isLowerCase(currentChar)) { + shifting = 'a'; + } else { shifting = 'A';} + + informationChar[i] = (char) ((currentChar - shifting + shift)%26 + shifting); + + } + } + + return String.valueOf(informationChar); + } + + public static void informationDecoder(String userInfo, int shift) { + char[] informationChar = userInfo.toCharArray(); + + for (int i = 0; i < informationChar.length; i++) { + char currentChar = informationChar[i]; + + if (Character.isLetter(currentChar)) { + char shifting; + if (Character.isLowerCase(currentChar)) { + shifting = 'a'; + } else { shifting = 'A';} + int decoded = currentChar - shift - shifting; + if (decoded < 0) { + decoded+= 26; + } + informationChar[i] = (char) (decoded + shifting); + } + } + + System.out.println(String.valueOf(informationChar)); + } + public static void main(String[] args) { //first function @@ -136,6 +178,26 @@ public static void main(String[] args) { //System.out.println(userFullInformation()); String userInfo = userFullInformation(); + //sixth and seventh function + System.out.println("if you want to see the encoded version of your info please enter \"encode\" , if you don't want to enter \"info\"."); + Scanner input = new Scanner(System.in); + String entry = input.nextLine(); + + if (Objects.equals(entry, "encode")){ + System.out.println("enter the amount of shift : "); + int shift = input.nextInt(); + System.out.println(informationEncoder(userInfo , shift)); + System.out.println("if you want to see the decoded version enter \"decode\" and if you don't want to, enter anything :)." ); + Scanner input2 = new Scanner(System.in); + String entry2 = input2.nextLine(); + if (Objects.equals(entry2, "decode")){ + String userInfo2 = informationEncoder(userInfo , shift); + informationDecoder(userInfo2, shift); + } + } + if (Objects.equals(entry, "info")){ + System.out.println(userFullInformation()); + } } }