Java Collection - CRUD Operation - INSERT, UPDATE, DELETE, SEARCH and DISPLAY of Employee Collection

Поделиться
HTML-код
  • Опубликовано: 24 окт 2024

Комментарии • 207

  • @whinnybaez7658
    @whinnybaez7658 2 года назад +31

    Ive been searching for HOURS!! This is the best and Most useful video out there. Thank you!

    • @DrParagShukla
      @DrParagShukla  2 года назад +5

      My Pleasure

    • @manjularaval9414
      @manjularaval9414 2 года назад

      Agree
      I was also searching for the same.
      Very powerful content and explanation.

  • @zainabalayande278
    @zainabalayande278 Год назад +5

    insightful video. Please for the sake of those some of us that are new to programming, please always make the variable names more understandable, it can as well be written in full. Thank you!

  • @alifwahyudaa
    @alifwahyudaa 9 месяцев назад +3

    very helpful and instruction clear, thank you Sir 🙏

    • @DrParagShukla
      @DrParagShukla  8 месяцев назад

      Glad to know that it is helpful!

  • @Noor-pf4mk
    @Noor-pf4mk Год назад +4

    Really awesome tutorial, clear, simple and straight to the point, thank you so much for this video 👍

    • @DrParagShukla
      @DrParagShukla  Год назад

      Glad that it helps
      My Pleasure

    • @samsaumaralikhan
      @samsaumaralikhan Год назад +1

      ​@@DrParagShuklacan i ask what program you are using?

    • @DrParagShukla
      @DrParagShukla  Год назад

      @@samsaumaralikhan For Code Writing Sublime
      Java - JDK 8+

    • @samsaumaralikhan
      @samsaumaralikhan Год назад

      @@DrParagShukla would this code still works if i use jgrasp?

  • @dwtigamer
    @dwtigamer Год назад +1

    Thank you so much for this tutorial, I found it easy to follow it and hopefully I can use the code as a building block for an assignment. I'll be saving your channel!

    • @DrParagShukla
      @DrParagShukla  Год назад

      My Pleasure
      Glad that it helps

    • @dwtigamer
      @dwtigamer Год назад

      @@DrParagShukla Is there anyway to pass a csv file instead of a txt file?

    • @dwtigamer
      @dwtigamer Год назад

      I'm getting issues with ObjectOutputStream and ObjectInputStream with a csv.

  • @mohsintadavi6393
    @mohsintadavi6393 2 года назад +2

    Tysm sir ...😇 you explain this concept in very easy way and its really helpful for me ...🙇‍♂

  • @zainabazmi3865
    @zainabazmi3865 2 года назад +5

    Damn it dude.. I have been searching for this forever. Thank u so so much.. I love the video.. extremely clear explanation

    • @adhityaaaramudhan9298
      @adhityaaaramudhan9298 2 года назад

      can you sent the code bro

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Thank you so much for your kind words.
      Glad that it helps

    • @DrParagShukla
      @DrParagShukla  2 года назад +1

      Source Code is available at following link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

    • @zainabazmi3865
      @zainabazmi3865 2 года назад

      @@DrParagShukla do u by any chance do any classes?

  • @CandraScore
    @CandraScore 2 года назад +3

    I've been looking for a CRUD tutorial without a GUI and without a mySql connection. But I can't find it, and I hope the tutorial above works. If successful I will support you doctor🙏

  • @avaneesha9571
    @avaneesha9571 Год назад +1

    Good explanation. This helped me a lot to understand collections, list of collection.

  • @littlejoe249
    @littlejoe249 2 года назад +1

    Thank you so much. You've saved me a bunch. Your explanations are very detailed . I am one happy gal

  • @sadhanagm5529
    @sadhanagm5529 2 года назад +2

    Thank you so much! It was very helpful. I have been searching this problem for an week

  • @renatzkigab2616
    @renatzkigab2616 Год назад +2

    Sir this video of yours gives me clear understanding of Java maybe in a little way but reviewing such everyday will led me to a bigger gain anyway as seeing your expertise on this I believe it still easy for you to do a program in GUI and I hope you do so. Thanks in advance.

    • @DrParagShukla
      @DrParagShukla  Год назад

      Sure
      I will do it.
      Thank you for your kind words

  • @Jody-nf2bz
    @Jody-nf2bz Год назад +1

    Excellent tutorial. Thank you so much!

  • @gru5444
    @gru5444 2 года назад +2

    My guy, you saved my life. I pray to whoever god I can to give you the best things in life. You are a legend.

  • @professorsnape29
    @professorsnape29 2 года назад +4

    Great tutorial, great explanation, thank you so much for this video!

    • @DrParagShukla
      @DrParagShukla  2 года назад +1

      Thank You So Much for your kind words

  • @gamingstudio924
    @gamingstudio924 2 года назад +2

    Thank You So Much Sir You just Explained the Complex Concepts with very Ease Way I am really Grateful for this Thanks a lotttt

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Thank You So Much for your kind words

  • @carvelbell181
    @carvelbell181 2 года назад +1

    Excellent tutorial. Well done. Thanks.

  • @nguyenducanhk17hcm14
    @nguyenducanhk17hcm14 2 года назад +1

    Sir, this video so good !!! Hope you can up more video like this

  • @alanwalker5845
    @alanwalker5845 2 года назад +1

    Thank you, this is really helpful.
    Please, keep making more videos.

  • @blossom24
    @blossom24 Год назад +1

    Thank you so much for such an amazing tutorial...

  • @nagaranjithaadhikari4040
    @nagaranjithaadhikari4040 2 года назад +1

    Good explanation sir..
    Can you please write program for ranking system, insertion order , exceptional handling to this program using constructors..

  • @PraveenKumar-uj2ih
    @PraveenKumar-uj2ih 2 года назад +1

    Really Amazing Sir ...I Learned a lot Thank You Sir

  • @parthpandya6535
    @parthpandya6535 3 года назад +6

    This is really useful !!! 👍👌🙌

  • @hadimustafa1761
    @hadimustafa1761 2 года назад +1

    Thanks a lot Sir ,and how can I get the total salary ?

  • @paradizzpoll
    @paradizzpoll 2 года назад +1

    Thanks, Man! for the best explanation...

  • @akankshajsoni1001
    @akankshajsoni1001 2 года назад +1

    Hello sir, wonderful explanation and it was very helpful.I had a problem statement.If you could help me solve it would really help as I'm struggling.Please let me know if I can connect and share the problem statement with you through any means.Thank you!

  • @endmysuffering6847
    @endmysuffering6847 2 года назад +1

    Will I be able to perform operations in this if I modify it into a shopping program I wish to make the salary into price then the name into quantity so that it will be (Item Name, Price, quantity) if the customer then purchase a product it will proceed to do the operation ( TotalPrice = Price * Quantity) . Anyways great video!

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Yes Correct
      So, many application can be developed based on this video

    • @endmysuffering6847
      @endmysuffering6847 2 года назад

      @@DrParagShukla Will I be able to perform calculations between 2 array elements using this program?

  • @akashdidore2414
    @akashdidore2414 2 года назад +1

    Sir, this is really great or useful information for us 🙏🏼.

  • @jayasingha8115
    @jayasingha8115 Год назад +1

    Thank you sir 😘

  • @aadhithkrishna5682
    @aadhithkrishna5682 2 года назад +1

    Fantastic explanation sir!! BTW are you taking any online class?Would like to know.Thnak u!

  • @mohinichavan968
    @mohinichavan968 2 года назад +1

    Very helpful and nice explanation 👍

  • @ricasanchez1764
    @ricasanchez1764 Год назад +2

    Thank you so much for this very helpful tutorial! ☺️ Do you have a source code for this?

    • @DrParagShukla
      @DrParagShukla  Год назад

      Glad to know that it helps
      Source Code Link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @rohitmuliyana6348
    @rohitmuliyana6348 3 года назад +3

    Great sir

  • @abhisheksamantray5244
    @abhisheksamantray5244 Год назад +1

    please sir 1st told the whole project scenario ,then write the code .i think it will be the easy way to understand and hope you do so, thanks a lot

  • @hadimustafa1761
    @hadimustafa1761 2 года назад

    AMAZING! Please sir can u tell me how can I convert it in OOP (can u tell me what should i just add to set it as OOP)
    Thank you in advance!!
    I appreciate your work!

    • @DrParagShukla
      @DrParagShukla  2 года назад +2

      Thank you for appreciation.
      This is already in OOP

    • @hadimustafa1761
      @hadimustafa1761 2 года назад +1

      @@DrParagShukla Thanks a lot professor ,and how can I add the total salary of the array?

  • @inkurutimes1332
    @inkurutimes1332 2 года назад +1

    Thx Dr

  • @marky1756
    @marky1756 2 года назад

    Wow thank you so much

  • @johncsanchez9763
    @johncsanchez9763 2 года назад +1

    Nice vid man

  • @shaikkaleema786
    @shaikkaleema786 2 года назад +1

    Thank you sir🙏🙏🙏.

  • @sivaprasanthn3141
    @sivaprasanthn3141 2 года назад +1

    Thank you so much

  • @rocklee7574
    @rocklee7574 2 года назад

    really awesome explanation sir

  • @vikaskumarsahu3197
    @vikaskumarsahu3197 2 года назад +1

    Thankyou sir

  • @jeruknipisyg
    @jeruknipisyg 2 года назад

    i have question, how to add a menu that can sort the data using sort method such as Selection, bubble etc in descending ?

  • @kelseyr.7918
    @kelseyr.7918 3 года назад +1

    Thanks 🥰🥰

  • @amandacassia2553
    @amandacassia2553 2 года назад +1

    Thank you

  • @muhammadvijar2022
    @muhammadvijar2022 3 года назад +3

    where does the C variable in menu 1 come from? I tried it, an error occurred

    • @DrParagShukla
      @DrParagShukla  3 года назад

      at time 5:03 variable c is declared for collection

    • @DrParagShukla
      @DrParagShukla  3 года назад

      Source code for this video is available on following link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @danemarkdagoc1323
    @danemarkdagoc1323 2 года назад

    in update.. can you please give example. if the only employee name will be updated. thanks

  • @gokulkrishna_3424
    @gokulkrishna_3424 2 года назад

    Hi sir, can you please tell how to add one default input in this program in compile time

  • @ABC-zv1sd
    @ABC-zv1sd 2 года назад

    Hello, How to copy paste selected files and folders at same time like filemanager andriid app /

  • @muhamadleonaagustisalutian6413
    @muhamadleonaagustisalutian6413 2 года назад +1

    Thankyou sirrr!!!!!!!

  • @nikunjvagadiya8765
    @nikunjvagadiya8765 3 года назад +1

    superb sir

  • @anbuj2011
    @anbuj2011 2 года назад +1

    Which software u r using for java?

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Sublime Editor for code writing and jdk 16 for testing program

  • @manutyagi8019
    @manutyagi8019 2 года назад +1

    Good morning sir, how can we do the same thing above with databases like sql or mysql?

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Java to SQLSERVER
      ruclips.net/video/UeElnmcsKKc/видео.html
      Java to Oracle
      ruclips.net/video/JiWw_kObYgs/видео.html

  • @xdebugger123
    @xdebugger123 2 года назад

    sir how to create it in a file and at the same time read,update,delete it with textfields?

  • @koulikdas8133
    @koulikdas8133 2 года назад

    Amazing !

  • @danemarkdagoc1323
    @danemarkdagoc1323 2 года назад +1

    can i do this without using arraylist.. just array?

    • @DrParagShukla
      @DrParagShukla  2 года назад

      You may use any collection family class like LinkedList, ArrayList etc. Array is not part of that.

    • @danemarkdagoc1323
      @danemarkdagoc1323 2 года назад

      can you please help me sir in my case study

  • @013jensig3
    @013jensig3 2 года назад

    Could you tell how to call all the operation in another package?

  • @Suni777
    @Suni777 2 года назад +1

    Hi sir how can I become like you please help me i want to become fast in development

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Practice makes everyone perfect
      It's a matter of practice only

  • @shaikkaleema786
    @shaikkaleema786 2 года назад +1

    Sir, what are the changes in code if we want to search the employee by his name?

    • @DrParagShukla
      @DrParagShukla  2 года назад +2

      Just Add case 6 for Search By Name and add the following code
      case 6:
      found = false;
      System.out.print("Enter Empname to Search :");
      ename = s1.nextLine();
      System.out.println("----------------------------");
      i = c.iterator();
      while(i.hasNext()){
      Employee e = i.next();
      if(e.getEname().equals(ename)) {
      System.out.println(e);
      found = true;
      }
      }
      if(!found){
      System.out.println("Record Not Found");
      }
      System.out.println("----------------------------");
      break;

    • @shaikkaleema786
      @shaikkaleema786 2 года назад +1

      @@DrParagShukla Thank you sir🙏🙏🙏.

    • @DrParagShukla
      @DrParagShukla  2 года назад

      My Pleasure

    • @shaikkaleema786
      @shaikkaleema786 2 года назад +1

      @@DrParagShukla
      Sir,could you please tell what is wrong in this code.I am getting "Book not found" statement for every input eventhough the bookname exists in the file.
      case 1:
      if(file.isFile()){
      ois=new ObjectInputStream(new FileInputStream(file));
      al=(ArrayList)ois.readObject();
      //ObjectOutputStream gets closed
      ois.close();
      boolean found=false;
      System.out.println("Enter book name to search:");
      String book=s1.nextLine();
      System.out.println("----------------------------------------");
      li=al.listIterator();
      while(li.hasNext()){
      Books e=li.next();
      if(e.book==book){
      System.out.println(e);
      found=true;
      }
      }
      if(!found)
      System.out.println("Book not found");
      System.out.println("---------------------------------------");
      }else{
      System.out.println("file not exists");
      }

    • @DrParagShukla
      @DrParagShukla  2 года назад +1

      @@shaikkaleema786 in if condition
      Instead of e.book == book
      Just write the following
      If(e.book.equals(book))

  • @-Revathi-wj6yq
    @-Revathi-wj6yq 2 года назад

    Can this be done using hashmap?

  • @SrivaniP-xe9cs
    @SrivaniP-xe9cs 2 года назад

    hlo,How to do two crud operations like for user and for book crud operations in a single crud operations

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Use join Query and do the same using JDBC

  • @ArminaWania
    @ArminaWania 2 года назад

    Hi, I have a list of students which has many elements how can update every elements? like below:
    public static List studentList = new ArrayList(List.of(
    new Student(1,12345L, "Jayne", "Smith", parentList.get(0), courseList ),
    new Student(2, 12346L, "Candy", "Brown", parentList.get(1),courseList )
    how can I change name of any fields I want?

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Instead of List create ArrayList and then use set function to update any values.

  • @prasannavenkat5595
    @prasannavenkat5595 2 года назад

    Hi sir I have one doubt... in which platform can I do this and get output Because I do this program today but I didn't get output!

  • @mariwana18
    @mariwana18 Год назад

    How would I write the toString method into a text file?

  • @Swirlss14
    @Swirlss14 2 года назад

    Do you have any flow chart

  • @poornimamanogaran
    @poornimamanogaran Год назад

    Sir... For me it shows error in CRUDDemo class..... "List"..... Cannot find symbol. Arraylist and listiterator... Everything shows same error. Pls help me🥺

  • @deelangengania7369
    @deelangengania7369 2 года назад

    When I tried changing the variables it won't run please help it says error: can't find main(String[]) method in class: Employee

  • @gopalghule2741
    @gopalghule2741 2 года назад +2

    Sir please share the source code .I need it today . it's very nice explanation .❤

    • @DrParagShukla
      @DrParagShukla  2 года назад +4

      Please find source code at following link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

    • @gopalghule2741
      @gopalghule2741 2 года назад +2

      @@DrParagShukla thank you so much sir ❤❤

    • @DrParagShukla
      @DrParagShukla  2 года назад +2

      My Pleasure

  • @harithdanishbinzulkarnain5612
    @harithdanishbinzulkarnain5612 2 года назад

    sir can it use linkedlist sir not arraylist

  • @chintuaravind1537
    @chintuaravind1537 2 года назад

    How to return the product to Flipkart like that code i need

  • @WVNGV_
    @WVNGV_ 2 года назад

    Am having a problem running case 1 properly it says Java. Lang. Unsupported operation exception : unsupported

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Please post your code
      Will correct it

    • @jerichoempleo6712
      @jerichoempleo6712 2 года назад

      Hello Good Day. Did u solve this problem of yours? Same issue here

  • @vedant_10-09
    @vedant_10-09 2 года назад

    Sir I am getting error can't find main string method [ ] in class Employee

    • @DrParagShukla
      @DrParagShukla  2 года назад

      When you run the program using java write name of class which has the main function
      java name_of_class_which_has_main

  • @hamziyaaj1734
    @hamziyaaj1734 3 года назад +1

    Did u connect to sql?

    • @DrParagShukla
      @DrParagShukla  3 года назад +1

      No it's simple collection
      For java oracle connection you can watch following video
      ruclips.net/video/JiWw_kObYgs/видео.html

    • @DrParagShukla
      @DrParagShukla  3 года назад +1

      For Java SQL Server watch following video
      ruclips.net/video/UeElnmcsKKc/видео.html

  • @marutpanchal5229
    @marutpanchal5229 2 года назад

    How to generate auto ID
    And sir after the update data. My emp id shows incremented.

  • @RendonJaballa22
    @RendonJaballa22 2 года назад

    other code to use aside from do and while?

  • @EJS0814
    @EJS0814 2 года назад +1

    Do you have the sourcr code sir

    • @DrParagShukla
      @DrParagShukla  2 года назад +1

      Link for source code
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @Anneroki2001
    @Anneroki2001 3 года назад +1

    hello sir how do I add a sorting function in this code?

    • @DrParagShukla
      @DrParagShukla  3 года назад +3

      ArrayList empList = new ArrayList();
      Collections.sort(empList, new Comparator(){
      public int compare(Employee e1, Employee e2){
      return e1.empno - e2.empno;
      }
      });
      for Reverse
      Collections.sort(empList, new Comparator(){
      public int compare(Employee e1, Employee e2){
      return e2.empno - e1.empno;
      }
      });

    • @criobui7522
      @criobui7522 Год назад

      @@DrParagShukla I tried to include this as case 6 but it didn't work for me. can you please help sir? Thank you.

  • @fajriillahi2509
    @fajriillahi2509 2 года назад

    The method listIterator from ListIterator cannot find symbol. How to solve this problem? Anyone? Thank you!

    • @DrParagShukla
      @DrParagShukla  2 года назад

      please check have you written import statement at first line??
      import java.util.*;

  • @rajkumarbaishya9726
    @rajkumarbaishya9726 2 года назад

    How to do it in eclipse

  • @sarithaboda3530
    @sarithaboda3530 3 года назад +1

    sir how to stop the duplicate values

    • @DrParagShukla
      @DrParagShukla  3 года назад

      Use HashMap collection and maintain key value pair.
      Key in Map Collection is unique

  • @sweetenerbaes4735
    @sweetenerbaes4735 2 года назад

    How abour retrieve sir?

  • @SreejuAnuruthan
    @SreejuAnuruthan 2 года назад

    How to apply add user

  • @crimeresearchanalysissecti4999
    @crimeresearchanalysissecti4999 2 года назад

    hello.. how to connect it on a database??

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Link to connect with Database
      ruclips.net/video/JiWw_kObYgs/видео.html

  • @niteshtiwari2031
    @niteshtiwari2031 2 года назад

    Sir can send this source code .... this will help me alot

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Please find source code at following link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @07mishraji
    @07mishraji Год назад

    Where can I get this code

    • @DrParagShukla
      @DrParagShukla  Год назад

      Source Code Link: videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @leoraj3224
    @leoraj3224 2 года назад

    One help doubt sir

  • @MANOJKUMAR-lq3jf
    @MANOJKUMAR-lq3jf 3 года назад +2

    Can u please upload source code

    • @DrParagShukla
      @DrParagShukla  3 года назад

      Yes Sure
      Very Soon i will share source code Link

  • @hammadakhtar743
    @hammadakhtar743 3 года назад +3

    code sir

    • @DrParagShukla
      @DrParagShukla  3 года назад

      Source code of this video is posted on following link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @tamilgusty3509
    @tamilgusty3509 Год назад +1

    Source code link..?

    • @DrParagShukla
      @DrParagShukla  Год назад

      Source Code Link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @julipriya1520
    @julipriya1520 2 года назад +1

    Can u send the source code plz

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Following is the link for sourcecode.
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @user-tc3iy8eo6b
    @user-tc3iy8eo6b 2 года назад

    Que diabos é 'empno'?

  • @fddd9627
    @fddd9627 2 года назад

    This program get link

    • @DrParagShukla
      @DrParagShukla  2 года назад +1

      Source Code Link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

    • @fddd9627
      @fddd9627 2 года назад

      @@DrParagShukla Hello sir can i get assignment on user role:buyer and seller using servlet and jsp in java project also mysql

  • @harshanarayana2356
    @harshanarayana2356 3 года назад

    Hello sir

    • @harshanarayana2356
      @harshanarayana2356 3 года назад +1

      How can I get source code

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Please find source code at following link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @adhityaaaramudhan9298
    @adhityaaaramudhan9298 2 года назад

    can you sent the code sir?

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Source Code is available at following link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @jungleimpact
    @jungleimpact Год назад

    code source please

  • @jamesduyon3
    @jamesduyon3 2 года назад

    Sir can i have the source code please 🥺

    • @DrParagShukla
      @DrParagShukla  2 года назад

      Please find source code at following link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @louiclone1036
    @louiclone1036 Год назад +1

    Code

    • @DrParagShukla
      @DrParagShukla  Год назад

      Source code link
      videosourcecode.blogspot.com/2021/09/source-code-of-video-java-collection.html

  • @criobui7522
    @criobui7522 Год назад

    hello, how do you add Sort function to this code? I tried this by adding to your source code but it didn't work.
    ArrayList empList = new ArrayList();
    Collections.sort(empList, new Comparator(){
    public int compare(Employee e1, Employee e2){
    return e1.empno - e2.empno;
    }
    });

  • @syswag-tm2wb
    @syswag-tm2wb 2 года назад

    can i change the arraylist to arrayqueue or not?