I highly recommend this video as a must-watch especially for all level-7 students. It’s a masterpiece! 👏 Oluwaseun, University of Northampton
@KentrolloncanasАй бұрын
import java.util.ArrayList; import java.util.List; import java.util.Scanner; // Student class to represent student data class Student { private int id; private String name; private String email; private int age; // Constructor public Student(int id, String name, String email, int age) { this.id = id; this.name = name; this.email = email; this.age = age; } // Getters and Setters public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } // toString method for easy printing @Override public String toString() { return "Student{" + "id=" + id + ", name='" + name + '\'' + ", email='" + email + '\'' + ", age=" + age + '}'; } } // StudentManager class to handle CRUD operations class StudentManager { private List<Student> students; private int nextId; public StudentManager() { students = new ArrayList<>(); nextId = 1; } // Create public void addStudent(String name, String email, int age) { Student newStudent = new Student(nextId++, name, email, age); students.add(newStudent); System.out.println("Student added successfully: " + newStudent); } // Read (All) public void displayAllStudents() { if (students.isEmpty()) { System.out.println("No students found."); return; } System.out.println("Student List:"); for (Student student : students) { System.out.println(student); } } // Read (By ID) public Student findStudentById(int id) { for (Student student : students) { if (student.getId() == id) { return student; } } return null; } // Update public void updateStudent(int id, String name, String email, int age) { Student student = findStudentById(id); if (student != null) { student.setName(name); student.setEmail(email); student.setAge(age); System.out.println("Student updated successfully: " + student); } else { System.out.println("Student not found with ID: " + id); } } // Delete public void deleteStudent(int id) { Student student = findStudentById(id); if (student != null) { students.remove(student); System.out.println("Student deleted successfully: " + student); } else { System.out.println("Student not found with ID: " + id); } } } // Main application class public class StudentCRUDApp { public static void main(String[] args) { StudentManager studentManager = new StudentManager(); Scanner scanner = new Scanner(System.in); while (true) { System.out.println(" --- Student CRUD Application ---"); System.out.println("1. Add Student"); System.out.println("2. Display All Students"); System.out.println("3. Find Student by ID"); System.out.println("4. Update Student"); System.out.println("5. Delete Student"); System.out.println("6. Exit"); System.out.print("Enter your choice: "); int choice = scanner.nextInt(); scanner.nextLine(); // Consume newline switch (choice) { case 1: System.out.print("Enter Name: "); String name = scanner.nextLine(); System.out.print("Enter Email: "); String email = scanner.nextLine(); System.out.print("Enter Age: "); int age = scanner.nextInt(); studentManager.addStudent(name, email, age); break; case 2: studentManager.displayAllStudents(); break; case 3: System.out.print("Enter Student ID: "); int findId = scanner.nextInt(); Student foundStudent = studentManager.findStudentById(findId); if (foundStudent != null) { System.out.println("Found Student: " + foundStudent); } else { System.out.println("Student not found."); } break; case 4: System.out.print("Enter Student ID to Update: "); int updateId = scanner.nextInt(); scanner.nextLine(); // Consume newline System.out.print("Enter New Name: "); String newName = scanner.nextLine(); System.out.print("Enter New Email: "); String newEmail = scanner.nextLine(); System.out.print("Enter New Age: "); int newAge = scanner.nextInt(); studentManager.updateStudent(updateId, newName, newEmail, newAge); break; case 5: System.out.print("Enter Student ID to Delete: "); int deleteId = scanner.nextInt(); studentManager.deleteStudent(deleteId); break; case 6: System.out.println("Exiting Application..."); scanner.close(); System.exit(0); default: System.out.println("Invalid choice. Please try again."); } } } }
@KentrolloncanasАй бұрын
import java.util.ArrayList; import java.util.List; import java.util.Scanner; // Student class to represent student data class Student { private int id; private String name; private String email; private int age; // Constructor public Student(int id, String name, String email, int age) { this.id = id; this.name = name; this.email = email; this.age = age; } // Getters and Setters public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } // toString method for easy printing @Override public String toString() { return "Student{" + "id=" + id + ", name='" + name + '\'' + ", email='" + email + '\'' + ", age=" + age + '}'; } } // StudentManager class to handle CRUD operations class StudentManager { private List<Student> students; private int nextId; public StudentManager() { students = new ArrayList<>(); nextId = 1; } // Create public void addStudent(String name, String email, int age) { Student newStudent = new Student(nextId++, name, email, age); students.add(newStudent); System.out.println("Student added successfully: " + newStudent); } // Read (All) public void displayAllStudents() { if (students.isEmpty()) { System.out.println("No students found."); return; } System.out.println("Student List:"); for (Student student : students) { System.out.println(student); } } // Read (By ID) public Student findStudentById(int id) { for (Student student : students) { if (student.getId() == id) { return student; } } return null; } // Update public void updateStudent(int id, String name, String email, int age) { Student student = findStudentById(id); if (student != null) { student.setName(name); student.setEmail(email); student.setAge(age); System.out.println("Student updated successfully: " + student); } else { System.out.println("Student not found with ID: " + id); } } // Delete public void deleteStudent(int id) { Student student = findStudentById(id); if (student != null) { students.remove(student); System.out.println("Student deleted successfully: " + student); } else { System.out.println("Student not found with ID: " + id); } } } // Main application class public class StudentCRUDApp { public static void main(String[] args) { StudentManager studentManager = new StudentManager(); Scanner scanner = new Scanner(System.in); while (true) { System.out.println(" --- Student CRUD Application ---"); System.out.println("1. Add Student"); System.out.println("2. Display All Students"); System.out.println("3. Find Student by ID"); System.out.println("4. Update Student"); System.out.println("5. Delete Student"); System.out.println("6. Exit"); System.out.print("Enter your choice: "); int choice = scanner.nextInt(); scanner.nextLine(); // Consume newline switch (choice) { case 1: System.out.print("Enter Name: "); String name = scanner.nextLine(); System.out.print("Enter Email: "); String email = scanner.nextLine(); System.out.print("Enter Age: "); int age = scanner.nextInt(); studentManager.addStudent(name, email, age); break; case 2: studentManager.displayAllStudents(); break; case 3: System.out.print("Enter Student ID: "); int findId = scanner.nextInt(); Student foundStudent = studentManager.findStudentById(findId); if (foundStudent != null) { System.out.println("Found Student: " + foundStudent); } else { System.out.println("Student not found."); } break; case 4: System.out.print("Enter Student ID to Update: "); int updateId = scanner.nextInt(); scanner.nextLine(); // Consume newline System.out.print("Enter New Name: "); String newName = scanner.nextLine(); System.out.print("Enter New Email: "); String newEmail = scanner.nextLine(); System.out.print("Enter New Age: "); int newAge = scanner.nextInt(); studentManager.updateStudent(updateId, newName, newEmail, newAge); break; case 5: System.out.print("Enter Student ID to Delete: "); int deleteId = scanner.nextInt(); studentManager.deleteStudent(deleteId); break; case 6: System.out.println("Exiting Application..."); scanner.close(); System.exit(0); default: System.out.println("Invalid choice. Please try again."); } } } }
@ZainabSaad-rp7bpАй бұрын
Thank you so much sir! very helpful and I insightful, lifesaver!!
@JustwatermelonАй бұрын
Wow wow brilliant
@yashiko3K2 ай бұрын
Very COOL 😎
@SuccessMindset21802 ай бұрын
1. Context and Clarity: situation, transparent 2. Legal Constraints and Traditions: gag order, common law 3. Complex explanation is helps with understanding given information
@taniapadayachy54422 ай бұрын
👌👌👌👌👌👌👌👌
@levcimac2 ай бұрын
Exceptionally clear!! I'm a middle-aged student back at Uni after 20 years and really value content like this to help me get started with my first academic essay!! I feel more confident now. Thank you!!
@pacifictamilan2 ай бұрын
Zero comments here... How to develop listening skills?
@Lucida18183 ай бұрын
Thank you 🙏 I enjoyed the clear instruction and feel better about my academic writing.
@Lucida18183 ай бұрын
Thank you this lecture was very clear
@ricardohenry21603 ай бұрын
😊
@haddadiwanassa4 ай бұрын
Thank you for your helpful content
@gibanmarketing5 ай бұрын
Do you need academic writing help including essays, assignments, research, thesis proposal, case study, article writing, etc.? Contact us today kzbin.info/www/bejne/l2bIlYOhjZxreZo
@Yaseen-o5m5 ай бұрын
nice
@intankinan63937 ай бұрын
so far this is one of the most challenging videos compared with the previous ones due to the sophisticated language choice. I need to watch this twice to be able to comprehend the information, but it is still a good lecture thanks!
@englishlinguistics118 ай бұрын
Wow ❤
@_SaadJamil8 ай бұрын
You guys deserve more subscribers. Appreciate what you are doing.
@YuriyGalin10 ай бұрын
💪
@astrayoz302410 ай бұрын
Me watching this is 2024 😝
@BUY198 Жыл бұрын
Thanks for the lesson
@mavicityrelayson2924 Жыл бұрын
These breakdowns with actual samples is so helpful.
@ashleycomfort8857 Жыл бұрын
This was very easy to understand... thank you
@pro369 Жыл бұрын
Excellent
@constanzaandrearioszurita3771 Жыл бұрын
Very useful, thanks.
@gautamgaba1034 Жыл бұрын
Explained it with ease. Thanks
@Kevin-vh6tg Жыл бұрын
I am a international student studying finance and accounting in usyd, your videos may be very useful for me to pass buss1000 Future of business. If I finish the videos and get distinction in the exam, I will be no more grateful for the videos maker and the university of melbourne!
@leonator98662 жыл бұрын
great video :C
@dailymirror21922 жыл бұрын
Thanks 👍
@gem2702 жыл бұрын
I was never taught this in middle school.
@ibrahimyunus85962 жыл бұрын
So glad to get this knowledge 👨🎓
@enisekucuk71372 жыл бұрын
I'm writing my master's thesis and these videos are helping me a lot, thank you! I wish I had seen them sooner. Giving examples of bad writing as well as good ones is very effective.
@farisroy_2 жыл бұрын
Hello, thanks for making such an informative video.
@ihsanahsan70052 жыл бұрын
Hi, my name is Mohamad Ahsanul Ihsan from UNNES. Thanks for making this video. I got new knowledge in writing. Clear explanation.
@ihsanahsan70052 жыл бұрын
Hi, my name is Mohamad Ahsanul Ihsan from UNNES. Thanks for making this video. It is very helpful because previously I was confused how to connect ideas.
@ihsanahsan70052 жыл бұрын
Hi, my name is Mohamad Ahsanul Ihsan from UNNES. Thanks for making this video. Now, I realize that every author has his/her own voice in academic writing.
@RiaAldilaPutri2 жыл бұрын
Hi, I'm Ria Aldila Putri from Unnes, and I agree that we need to read a lot before we create thoughts. I just discovered that taking notes on crucial concepts is essential since only then can we incorporate them into our own work. Thank you for the informative video!
@RiaAldilaPutri2 жыл бұрын
Hello, my name is Ria Aldila Putri from Unnes. This video, I believe, has aided my comprehension of how to compose strong sentences so that the writing is clearer and more focused on the selected subject. That's helpful since the example texts assist me grasp the content offered.
@ihsanahsan70052 жыл бұрын
Hi, my name is Mohamad Ahsanul Ihsan from UNNES. Thanks for making this video. The explanation of writing in academic style very clear and help me in doing my final project.
@RiaAldilaPutri2 жыл бұрын
This video has taught me the value of critique, interpretation, and cohesiveness in academic writing. As a result, this movie is quite beneficial to me. Thank you very much! (Ria Aldila Putri, Unnes)
@RiaAldilaPutri2 жыл бұрын
Thank you very much for explaining. This movie provided me with fresh insights on how to relate thoughts in written form, as well as certain words and phrases that may be utilised to connect one sentence to the next, making the reading easier for readers to understand. I realised I needed that information to help me practise my writing skills. (Unnes, Ria Aldila Putri)
@ihsanahsan70052 жыл бұрын
Hi, my name is Mohamad Ahsanul Ihsan from UNNES. Thanks for making this video. I really need the explanation of an essay's structure for making my final project.
@ihsanahsan70052 жыл бұрын
Hi, my name is Mohamad Ahsanul Ihsan from UNNES. Thanks for making a helpful in writing's video.
@RiaAldilaPutri2 жыл бұрын
Thank you very much! This video is quite beneficial to me. Your explanation solves my questions regarding writing academic papers. It also helps me learn new things. Particularly with the terms I should avoid using in academic writing and hedging. Thank you for making this video.
@ahmadludwigmalmsteen15022 жыл бұрын
Hi, I am Ludwig from Semarang State University. Thankyou for the awesome explanation of reading into writing. Now I know the important of writing is reading for new ideas because if we reading a lot of something we can write something easy.
@RiaAldilaPutri2 жыл бұрын
Thank you for your valuable insight. It seems evident to me that the writer's voice is the most important aspect of academic writing. However, it must be supported by the direct and indirect voice of a source and composed as a whole in order to promote ideas in works. (Ria Aldila Putri, Unnes)
@ihsanahsan70052 жыл бұрын
Hi, my name is Mohamad Ahsanul Ihsan from UNNES. Thanks for making this video. We will all be confused if we read writing that is not clear on its purpose. Therefore, we must not make our readers feel that way.
@srirahayu28182 жыл бұрын
this video is very good and helps me in writing a paragraph (srirahayu UNNES,UMK)