From eee68182e4a0edc09a186e2425a3d6062c244fa6 Mon Sep 17 00:00:00 2001 From: rezaseydanloo Date: Fri, 15 Mar 2024 12:09:14 +0330 Subject: [PATCH 1/9] the basic structure the resume maker(not finished) --- Answers/40230212055/Main.java | 195 ++++++++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 Answers/40230212055/Main.java diff --git a/Answers/40230212055/Main.java b/Answers/40230212055/Main.java new file mode 100644 index 0000000..96658f3 --- /dev/null +++ b/Answers/40230212055/Main.java @@ -0,0 +1,195 @@ +package tamrin1_AP; + +import java.util.Scanner; + +public class Main { + + + public static String fullname() { + + + Scanner input1 = new Scanner(System.in); + Scanner input2 = new Scanner(System.in); + System.out.print("enter first name : "); + String firstname = input1.nextLine(); + System.out.print("enter last name : "); + String lastname = input2.nextLine(); + + String[] name1 = firstname.split(""); + String[] name2 = lastname.split(""); + + name1[0] = name1[0].toUpperCase(); + name2[0] = name2[0].toUpperCase(); + + for (int i = 1; i < name1.length; i++) { + name1[i] = name1[i].toLowerCase(); + name1[0] += name1[i]; + } + + for (int i = 1; i < name2.length; i++) { + name2[i] = name2[i].toLowerCase(); + name2[0] += name2[i]; + } + + name1[0] += " "; + name1[0] += name2[0]; + System.out.println("Full name : " + name1[0]); + + + return name1[0]; + } + + + public static String phonenumber() { + + + System.out.print("enter phune number(must be 11 digit) : "); + + Scanner input = new Scanner(System.in); + String number1 = input.nextLine(); + String[] number = number1.split(""); + + + if (number.length == 11) { + + for (int i = 1; i <= 10; i++) { + number[0] += number[i]; + } + + System.out.print("phone number : " + number[0]); + + return number[0]; + + } else if (number[0] != "0" && number.length == 10) { + + String str = "0"; + + for (int i = 0; i < number.length; i++) { + str += number[i]; + } + + System.out.print("phone number : " + str); + + return str; + + } else { + System.out.println("Wrong entry. Try again (enter (0)) : "); + phonenumber(); + } + + + return " not found "; + + } + + + public static String[] interests() { + + + System.out.print("number of interest : "); + Scanner input = new Scanner(System.in); + int limit = input.nextInt(); + + String[] interest = new String[limit]; + + for (int i = 0; i < limit; i++) { + + System.out.print("interest " + (i + 1) + " : "); + + Scanner input2 = new Scanner(System.in); + interest[i] = input2.nextLine(); + + + } + + System.out.println("your interests list : "); + + for (int i = 0; i < limit; i++) { + System.out.println((i + 1) + " : " + interest[i]); + } + + return interest; + } + + + public static String userid() { + + System.out.print("enter ID : "); + + Scanner input = new Scanner(System.in); + String id = input.nextLine(); + + System.out.println("you ID : " + id); + + return id; + } + + + public static void information1(String fullname, String phonenumber, String ID, String[] interests) { + + for (int i = 0; i < 3; i++) { + System.out.println("\n"); + } + + System.out.println("Hello! My name is " + fullname + "." + "My ID is " + ID + "." + "Here are some of myinterest:" + "\n"); + + for (int i = 0; i < interests.length; i++) { + System.out.println((i + 1) + " : " + interests[i]); + } + + System.out.println("\n" + "You can reach me via my phone number " + phonenumber + " ."); + + //Hello! My name is Aryan Nourbakhsh. My ID is 40030111111. Here are some of my interests: + + } + + + public static int option() { + + + System.out.println("enter first name & last name : (1) "); + System.out.println("enter phone number : (2) "); + System.out.println("enter user ID : (3) "); + System.out.println("enter interests : (4) "); + System.out.println("show information : (5) "); + + System.out.print("choose a option : "); + Scanner input = new Scanner(System.in); + int switchkey = input.nextInt(); + + return switchkey; + + } + + + public static void main(String[] args) { + + + String userfullname = "0"; + String usernumber = "0"; + String userID = "0"; + String[] userinterests = {"0"}; + + + userfullname = fullname(); + System.out.println("\n"); + + + usernumber = phonenumber(); + System.out.println("\n"); + + userID = userid(); + System.out.println("\n"); + + + userinterests = interests(); + System.out.println("\n"); + + + information1(userfullname, usernumber, userID, userinterests); + + + } +} + + From ccb61320ace4c6e5b18bbee1b4eb400590b7c50a Mon Sep 17 00:00:00 2001 From: rezaseydanloo Date: Fri, 15 Mar 2024 23:08:06 +0330 Subject: [PATCH 2/9] end of caesar encoder and rename basic version of resume maker --- Answers/40230212055/CaesarEncoder.java | 71 +++++++++++++++++++ .../{Main.java => ResumeMaker.java} | 2 +- 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 Answers/40230212055/CaesarEncoder.java rename Answers/40230212055/{Main.java => ResumeMaker.java} (99%) diff --git a/Answers/40230212055/CaesarEncoder.java b/Answers/40230212055/CaesarEncoder.java new file mode 100644 index 0000000..2b4e9f7 --- /dev/null +++ b/Answers/40230212055/CaesarEncoder.java @@ -0,0 +1,71 @@ +package tamrin1_AP; + +import java.util.Scanner; + +public class CaesarEncoder { + + public static void main(String[] args) { + + System.out.print("enter sentence : "); + Scanner input = new Scanner(System.in); + String stringinput = input.nextLine(); + + System.out.print("shift : "); + Scanner inputshift = new Scanner(System.in); + int shift = input.nextInt(); + + + char[] sentence = stringinput.toCharArray(); + int asci; + + for (int i=0 ; i=65 && (asci+shift)<=90) + { + sentence[i] = (char)(asci+shift); + } + + else if ((asci+shift)>90 && (asci+shift)<=122) + { + if (asci<=90) + { + sentence[i]=(char) (64+((asci+shift)-90)); + } + else if (asci>90) + { + sentence[i]=(char)(asci+shift); + } + + } + + else if ((asci+shift)>=97 && (asci+shift)<=122) + { + sentence[i]=(char) asci; + } + + else if ((asci+shift)>122 ) + { + sentence[i]=(char) (96+((asci+shift)-122)); + } + + + } + + for (int i=0 ; i< sentence.length ; i++) + { + System.out.print(sentence[i]); + } + + + + + + + + + } +} diff --git a/Answers/40230212055/Main.java b/Answers/40230212055/ResumeMaker.java similarity index 99% rename from Answers/40230212055/Main.java rename to Answers/40230212055/ResumeMaker.java index 96658f3..11ecf28 100644 --- a/Answers/40230212055/Main.java +++ b/Answers/40230212055/ResumeMaker.java @@ -2,7 +2,7 @@ import java.util.Scanner; -public class Main { +public class ResumeMaker { public static String fullname() { From b497639401a5556dbaede6606a7b91cdea50a11f Mon Sep 17 00:00:00 2001 From: rezaseydanloo Date: Sun, 17 Mar 2024 12:25:52 +0330 Subject: [PATCH 3/9] some change in project (rename and etc) --- Answers/40230212055/CaesarEncoder.java | 2 +- .../{ResumeMaker.java => Main.java} | 4 +- Answers/40230212055/RsumeMaker.java | 199 ++++++++++++++++++ 3 files changed, 202 insertions(+), 3 deletions(-) rename Answers/40230212055/{ResumeMaker.java => Main.java} (98%) create mode 100644 Answers/40230212055/RsumeMaker.java diff --git a/Answers/40230212055/CaesarEncoder.java b/Answers/40230212055/CaesarEncoder.java index 2b4e9f7..d378b81 100644 --- a/Answers/40230212055/CaesarEncoder.java +++ b/Answers/40230212055/CaesarEncoder.java @@ -1,4 +1,4 @@ -package tamrin1_AP; +package tamrin2_AP; import java.util.Scanner; diff --git a/Answers/40230212055/ResumeMaker.java b/Answers/40230212055/Main.java similarity index 98% rename from Answers/40230212055/ResumeMaker.java rename to Answers/40230212055/Main.java index 11ecf28..3c1319b 100644 --- a/Answers/40230212055/ResumeMaker.java +++ b/Answers/40230212055/Main.java @@ -1,8 +1,8 @@ -package tamrin1_AP; +package tamrin2_AP; import java.util.Scanner; -public class ResumeMaker { +public class Main { public static String fullname() { diff --git a/Answers/40230212055/RsumeMaker.java b/Answers/40230212055/RsumeMaker.java new file mode 100644 index 0000000..cd2d09b --- /dev/null +++ b/Answers/40230212055/RsumeMaker.java @@ -0,0 +1,199 @@ +package tamrin2_AP; + +import java.util.Scanner; + +public class RsumeMaker { + + + + public static String fullname() { + + + Scanner input1 = new Scanner(System.in); + Scanner input2 = new Scanner(System.in); + System.out.print("enter first name : "); + String firstname = input1.nextLine(); + System.out.print("enter last name : "); + String lastname = input2.nextLine(); + + String[] name1 = firstname.split(""); + String[] name2 = lastname.split(""); + + name1[0] = name1[0].toUpperCase(); + name2[0] = name2[0].toUpperCase(); + + for (int i = 1; i < name1.length; i++) { + name1[i] = name1[i].toLowerCase(); + name1[0] += name1[i]; + } + + for (int i = 1; i < name2.length; i++) { + name2[i] = name2[i].toLowerCase(); + name2[0] += name2[i]; + } + + name1[0] += " "; + name1[0] += name2[0]; + System.out.println("Full name : " + name1[0]); + + + return name1[0]; + } + + + public static String phonenumber() { + + + System.out.print("enter phune number(must be 11 digit) : "); + + Scanner input = new Scanner(System.in); + String number1 = input.nextLine(); + String[] number = number1.split(""); + + + if (number.length == 11) { + + for (int i = 1; i <= 10; i++) { + number[0] += number[i]; + } + + System.out.print("phone number : " + number[0]); + + return number[0]; + + } else if (number[0] != "0" && number.length == 10) { + + String str = "0"; + + for (int i = 0; i < number.length; i++) { + str += number[i]; + } + + System.out.print("phone number : " + str); + + return str; + + } else { + System.out.println("Wrong entry. Try again (enter (0)) : "); + phonenumber(); + } + + + return " not found "; + + } + + + public static String[] interests() { + + + System.out.print("number of interest : "); + Scanner input = new Scanner(System.in); + int limit = input.nextInt(); + + String[] interest = new String[limit]; + + for (int i = 0; i < limit; i++) { + + System.out.print("interest " + (i + 1) + " : "); + + Scanner input2 = new Scanner(System.in); + interest[i] = input2.nextLine(); + + + } + + System.out.println("your interests list : "); + + for (int i = 0; i < limit; i++) { + System.out.println((i + 1) + " : " + interest[i]); + } + + return interest; + } + + + public static String userid() { + + System.out.print("enter ID : "); + + Scanner input = new Scanner(System.in); + String id = input.nextLine(); + + System.out.println("you ID : " + id); + + return id; + } + + + public static void information1(String fullname, String phonenumber, String ID, String[] interests) { + + for (int i = 0; i < 3; i++) { + System.out.println("\n"); + } + + System.out.println("Hello! My name is " + fullname + "." + "My ID is " + ID + "." + "Here are some of myinterest:" + "\n"); + + for (int i = 0; i < interests.length; i++) { + System.out.println((i + 1) + " : " + interests[i]); + } + + System.out.println("\n" + "You can reach me via my phone number " + phonenumber + " ."); + + //Hello! My name is Aryan Nourbakhsh. My ID is 40030111111. Here are some of my interests: + + } + + + public static int option() { + + + System.out.println("enter first name & last name : (1) "); + System.out.println("enter phone number : (2) "); + System.out.println("enter user ID : (3) "); + System.out.println("enter interests : (4) "); + System.out.println("show information : (5) "); + + System.out.print("choose a option : "); + Scanner input = new Scanner(System.in); + int switchkey = input.nextInt(); + + return switchkey; + + } + + + + + public static void main(String[] args) { + + + + String userfullname = "0"; + String usernumber = "0"; + String userID = "0"; + String[] userinterests = {"0"}; + + + userfullname = fullname(); + System.out.println("\n"); + + + usernumber = phonenumber(); + System.out.println("\n"); + + userID = userid(); + System.out.println("\n"); + + + userinterests = interests(); + System.out.println("\n"); + + + information1(userfullname, usernumber, userID, userinterests); + + + + + } +} From 1c462b3d21768167b0052cf1e5820a31bee63e15 Mon Sep 17 00:00:00 2001 From: rezaseydanloo Date: Sun, 17 Mar 2024 13:28:53 +0330 Subject: [PATCH 4/9] end of caesar decoder --- Answers/40230212055/CaesarDecoder.java | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Answers/40230212055/CaesarDecoder.java diff --git a/Answers/40230212055/CaesarDecoder.java b/Answers/40230212055/CaesarDecoder.java new file mode 100644 index 0000000..a8548af --- /dev/null +++ b/Answers/40230212055/CaesarDecoder.java @@ -0,0 +1,56 @@ +package tamrin2_AP; + +import java.util.Scanner; + +public class CaesarDecoder { + + public static void main(String[] args) { + + System.out.print("enter sentence : "); + Scanner input = new Scanner(System.in); + String stringinput = input.nextLine(); + + System.out.print("shift : "); + Scanner inputshift = new Scanner(System.in); + int shift = input.nextInt(); + + + char[] sentence = stringinput.toCharArray(); + int asci; + + for (int i = 0; i < sentence.length; i++) { + + asci = sentence[i]; + + + if ((asci - shift) >= 65 && asci <= 90) + { + sentence[i] = (char) (asci - shift); + } + + else if ((asci - shift) < 65 && asci <= 90) + { + if (asci==32) + continue; + + sentence[i] = (char) (91 - (65 - (asci - shift))); + } + + else if ((asci - shift) >= 97 && (asci - shift) <= 122) + { + sentence[i] = (char) (asci - shift); + } + + else if ((asci - shift) < 97 && asci >= 97) + { + sentence[i] = (char) ((123-(97 - (asci - shift)))); + } + + } + + for (int i = 0; i < sentence.length; i++) + { + System.out.print(sentence[i]); + } + } +} From 899afdcba7380ea7783012200cfad76b6482e60c Mon Sep 17 00:00:00 2001 From: rezaseydanloo Date: Sun, 17 Mar 2024 22:12:44 +0330 Subject: [PATCH 5/9] update main code --- Answers/40230212055/Main.java | 135 ++++++++++++++++++++++++++++++---- 1 file changed, 122 insertions(+), 13 deletions(-) diff --git a/Answers/40230212055/Main.java b/Answers/40230212055/Main.java index 3c1319b..ad16fcc 100644 --- a/Answers/40230212055/Main.java +++ b/Answers/40230212055/Main.java @@ -125,7 +125,17 @@ public static String userid() { } - public static void information1(String fullname, String phonenumber, String ID, String[] interests) { + public static String information1(String fullname, String phonenumber, String ID, String[] interests) { + + + String str = "Hello! My name is "; + + str += fullname; + str += "."; + str += "My ID is "; + str += ID; + str += "."; + str += "#"; for (int i = 0; i < 3; i++) { System.out.println("\n"); @@ -133,31 +143,88 @@ public static void information1(String fullname, String phonenumber, String ID, System.out.println("Hello! My name is " + fullname + "." + "My ID is " + ID + "." + "Here are some of myinterest:" + "\n"); - for (int i = 0; i < interests.length; i++) { + for (int i = 0; i < interests.length; i++) + { System.out.println((i + 1) + " : " + interests[i]); + + str += interests[i]; + str += "#"; + } System.out.println("\n" + "You can reach me via my phone number " + phonenumber + " ."); + str += "You can reach me via my phone number " ; + str += phonenumber; + str += "#"; + + //"@" neshane payan reshte + + str += "@"; + str += "#"; + + return str; + //Hello! My name is Aryan Nourbakhsh. My ID is 40030111111. Here are some of my interests: } - public static int option() { + public static String EnCodeInformation(String stringinput) + { + System.out.print("shift : "); + Scanner inputshift = new Scanner(System.in); + int shift = inputshift.nextInt(); - System.out.println("enter first name & last name : (1) "); - System.out.println("enter phone number : (2) "); - System.out.println("enter user ID : (3) "); - System.out.println("enter interests : (4) "); - System.out.println("show information : (5) "); - System.out.print("choose a option : "); - Scanner input = new Scanner(System.in); - int switchkey = input.nextInt(); + char[] sentence = stringinput.toCharArray(); + int asci; + + for (int i=0 ; i=65 && (asci+shift)<=90) + { + sentence[i] = (char)(asci+shift); + } + + else if ((asci+shift)>90 && (asci+shift)<=122) + { + if (asci<=90) + { + sentence[i]=(char) (64+((asci+shift)-90)); + } + else if (asci>90) + { + sentence[i]=(char)(asci+shift); + } + + } + + else if ((asci+shift)>=97 && (asci+shift)<=122) + { + sentence[i]=(char) asci; + } + + else if ((asci+shift)>122 ) + { + sentence[i]=(char) (96+((asci+shift)-122)); + } + + + } + + for (int i=1 ; i< sentence.length ; i++) + { + sentence[0]+=sentence[i]; + } + + System.out.println(sentence[0]); - return switchkey; } @@ -169,6 +236,7 @@ public static void main(String[] args) { String usernumber = "0"; String userID = "0"; String[] userinterests = {"0"}; + String stringinformation ; userfullname = fullname(); @@ -186,7 +254,48 @@ public static void main(String[] args) { System.out.println("\n"); - information1(userfullname, usernumber, userID, userinterests); + stringinformation = information1(userfullname, usernumber, userID, userinterests); + + + + while (true) + { + System.out.println("Encode information (1) "); + System.out.println("Decode information (2) "); + System.out.println("show information (3) "); + System.out.println("EXIT (4) "); + System.out.print ("choose a option : " ); + + Scanner input = new Scanner (System.in); + int switchkey = input.nextInt(); + + + + + + switch (switchkey) + { + + case 1: + + stringinformation = EnCodeInformation(stringinformation); + continue; + + case 2: + + + + case 3: + + + + case 4: + break; + + } + } + + } From d8e13b5100bb5fe872167525a70076812fc59b13 Mon Sep 17 00:00:00 2001 From: rezaseydanloo Date: Sun, 17 Mar 2024 23:05:45 +0330 Subject: [PATCH 6/9] update main code (2.) three option completed --- Answers/40230212055/Main.java | 39 ++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/Answers/40230212055/Main.java b/Answers/40230212055/Main.java index ad16fcc..efd87e7 100644 --- a/Answers/40230212055/Main.java +++ b/Answers/40230212055/Main.java @@ -1,5 +1,6 @@ package tamrin2_AP; +import java.util.Arrays; import java.util.Scanner; public class Main { @@ -74,11 +75,10 @@ public static String phonenumber() { } else { System.out.println("Wrong entry. Try again (enter (0)) : "); - phonenumber(); + return phonenumber(); } - return " not found "; } @@ -135,6 +135,7 @@ public static String information1(String fullname, String phonenumber, String ID str += "My ID is "; str += ID; str += "."; + str += "Here are some of my interest:"; str += "#"; for (int i = 0; i < 3; i++) { @@ -152,16 +153,16 @@ public static String information1(String fullname, String phonenumber, String ID } - System.out.println("\n" + "You can reach me via my phone number " + phonenumber + " ."); + // baraye mark kardan + + System.out.println("\n" + "You can reach me via my phone number " + phonenumber + " ." + "\n"); str += "You can reach me via my phone number " ; - str += phonenumber; + str += phonenumber+"."; str += "#"; - //"@" neshane payan reshte - str += "@"; - str += "#"; + return str; @@ -218,14 +219,16 @@ else if ((asci+shift)>122 ) } - for (int i=1 ; i< sentence.length ; i++) + //for (int i=1 ; i< sentence.length ; i++) { - sentence[0]+=sentence[i]; + //sentence[0]+=sentence[i]; } - System.out.println(sentence[0]); + //System.out.println(sentence[0]); + String str = String.valueOf(sentence); + return str; } @@ -287,7 +290,23 @@ public static void main(String[] args) { case 3: + String [] show = stringinformation.split("#"); + + System.out.println("\n" + show[0]); + for (int i=1 ; i<=show.length-2 ; i++) + { + System.out.println((i) + " : " + show[i]); + } + + System.out.println(show[show.length-1] + "\n"); + + System.out.print("enter (exit) for back : "); + Scanner stop = new Scanner(System.in); + String stop2 = stop.nextLine(); + System.out.println("\n"); + + continue; case 4: break; From 07ab5bed8368540fa0a12046374eac5ee32815cb Mon Sep 17 00:00:00 2001 From: rezaseydanloo Date: Tue, 19 Mar 2024 11:51:42 +0330 Subject: [PATCH 7/9] options completed --- Answers/40230212055/Main.java | 63 ++++++++++++++++++++++++++++++++--- 1 file changed, 58 insertions(+), 5 deletions(-) diff --git a/Answers/40230212055/Main.java b/Answers/40230212055/Main.java index efd87e7..6473d22 100644 --- a/Answers/40230212055/Main.java +++ b/Answers/40230212055/Main.java @@ -219,19 +219,71 @@ else if ((asci+shift)>122 ) } - //for (int i=1 ; i< sentence.length ; i++) - { - //sentence[0]+=sentence[i]; + String str = String.valueOf(sentence); + + return str; + } + + + + + public static String DeCodeInformation (String stringinput) + { + + + System.out.print("shift : "); + Scanner inputshift = new Scanner(System.in); + int shift = inputshift.nextInt(); + + char[] sentence = stringinput.toCharArray(); + int asci; + + for (int i = 0; i < sentence.length; i++) { + + asci = sentence[i]; + + + if ((asci - shift) >= 65 && asci <= 90) + { + sentence[i] = (char) (asci - shift); + } + + else if ((asci - shift) < 65 && asci <= 90) + { + if (asci<65) + continue; + + sentence[i] = (char) (91 - (65 - (asci - shift))); + } + + else if ((asci - shift) >= 97 && (asci - shift) <= 122) + { + sentence[i] = (char) (asci - shift); + } + + else if ((asci - shift) < 97 && asci >= 97) + { + sentence[i] = (char) ((123-(97 - (asci - shift)))); + } + } - //System.out.println(sentence[0]); String str = String.valueOf(sentence); return str; + + + } + + + + + + public static void main(String[] args) { @@ -285,7 +337,8 @@ public static void main(String[] args) { continue; case 2: - + stringinformation = DeCodeInformation(stringinformation); + continue; case 3: From 8b111a2024fa15a435c284fe5c9fbce1336f5d87 Mon Sep 17 00:00:00 2001 From: rezaseydanloo Date: Tue, 19 Mar 2024 12:10:09 +0330 Subject: [PATCH 8/9] debug main --- Answers/40230212055/Main.java | 39 ++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/Answers/40230212055/Main.java b/Answers/40230212055/Main.java index 6473d22..fe425ea 100644 --- a/Answers/40230212055/Main.java +++ b/Answers/40230212055/Main.java @@ -51,8 +51,8 @@ public static String phonenumber() { String[] number = number1.split(""); - if (number.length == 11) { - + if (number.length == 11) + { for (int i = 1; i <= 10; i++) { number[0] += number[i]; } @@ -60,9 +60,26 @@ public static String phonenumber() { System.out.print("phone number : " + number[0]); return number[0]; + } + + + + else if (number[0] != "0" && number.length == 10) + { + String str = "0"; + + for (int i = 0; i < number.length; i++) { + str += number[i]; + } + + System.out.print("phone number : " + str); - } else if (number[0] != "0" && number.length == 10) { + return str; + } + + else if (number[0] != "0" && number.length == 10) + { String str = "0"; for (int i = 0; i < number.length; i++) { @@ -72,14 +89,17 @@ public static String phonenumber() { System.out.print("phone number : " + str); return str; + } + + - } else { + else + { System.out.println("Wrong entry. Try again (enter (0)) : "); return phonenumber(); } - } @@ -190,6 +210,8 @@ public static String EnCodeInformation(String stringinput) if ((asci+shift)>=65 && (asci+shift)<=90) { + if (asci < 65) + continue; sentence[i] = (char)(asci+shift); } @@ -312,7 +334,7 @@ public static void main(String[] args) { stringinformation = information1(userfullname, usernumber, userID, userinterests); - + here : while (true) { System.out.println("Encode information (1) "); @@ -362,14 +384,11 @@ public static void main(String[] args) { continue; case 4: - break; + break here; } } - - - } } From c86e10748876b5e45085713e15e010648a33af45 Mon Sep 17 00:00:00 2001 From: rezaseydanloo Date: Tue, 19 Mar 2024 12:12:20 +0330 Subject: [PATCH 9/9] end of the project --- Answers/40230212055/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Answers/40230212055/Main.java b/Answers/40230212055/Main.java index fe425ea..9487d5a 100644 --- a/Answers/40230212055/Main.java +++ b/Answers/40230212055/Main.java @@ -391,5 +391,5 @@ public static void main(String[] args) { } } - +// payan . 40230212055