File Handling in Java Insert, Update, Delete, Search, Sort and Display with collection in File CRUD

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ต.ค. 2024
  • This video demonstrates how to read write collection with insert, update, delete, search, sort in file handling in java.
    Reading writing searching sorting collection in file handling in java.
    Menu Driven Program in Java with following option
    1. INSERT
    2. DISPLAY
    3. SEARCH
    4. DELETE
    5. UPDATE
    6. SORT BY EMPNO ON SCREEN
    7. SORT BY EMPNO IN FILE
    8. SORT BY ENAME ON SCREEN
    9. SORT BY ENAME IN FILE
    10. SORT BY SALARY DESC ON SCREEN
    11. SORT BY SALARY ASC IN FILE
    #Java #Coding #Programming #CodingFunda #DrParagShukla
    For Learning More about Programming
    Subscribe to My Channel: www.youtube.co...

ความคิดเห็น • 187

  • @ashutoshaswani2805
    @ashutoshaswani2805 2 ปีที่แล้ว +11

    I can not believe why this channel has only 4.46k subs. Within some time I believe it will be in millions of subscribers.
    The quality of content provided is awesome 🤩🤩🤩.
    Thanks a lot sir.
    You are teaching such a difficult topic in such a wonderful way that I can not express how easy now I feel programming is.
    Once again thanks a lot sir.🙏
    You are really a great teacher.

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว +1

      Thank You So Much for your kind words 🙏🙏

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว +3

      Please share to needy
      Share to people who want to learn programming

    • @achiever27
      @achiever27 2 ปีที่แล้ว

      @@DrParagShukla Sure sir.

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      @@achiever27 Thank You

    • @muhammadrayanmansoor4301
      @muhammadrayanmansoor4301 2 ปีที่แล้ว

      SIR please make a successive video on how to Email this todo list

  • @scorpion18loco
    @scorpion18loco 2 ปีที่แล้ว +4

    Just amazing, I'm a spanish programmer student and I find your video class super for those who are learnin with files and objects like me. Thanks you for your time, I will share your video with my friends! Greetings ! :)

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Glad that you liked it
      My Pleasure

  • @aarthis6216
    @aarthis6216 6 หลายเดือนก่อน +1

    Very useful sir, crisp and clear explanation
    Understood very clearly and very useful video while learning file handling

  • @prabhatmattoo6554
    @prabhatmattoo6554 3 ปีที่แล้ว +10

    What a video sir..helped me clear all the concepts regarding the iterator usage and printstream usage.. Keep up the good work sir..

    • @DrParagShukla
      @DrParagShukla  3 ปีที่แล้ว +3

      My Pleasure
      Thank You So Much for appreciation

    • @muhammadrayanmansoor4301
      @muhammadrayanmansoor4301 2 ปีที่แล้ว

      @@DrParagShukla SIR please make a video on how to Email this todo list...
      Sending this todo list via email

  • @Gudsan
    @Gudsan 2 ปีที่แล้ว +1

    सर आपका एक्सप्लेन करने का तरीका बहुत बढ़िया है

  • @RongalaZinardhan-lq4it
    @RongalaZinardhan-lq4it 2 หลายเดือนก่อน +1

    Thank u Sir For this videos Very Usefull to me
    It is Helps to My Project

  • @rameshganapathi476
    @rameshganapathi476 10 หลายเดือนก่อน +1

    Sir, your explanation is excellent. Thank a lot sir

  • @higiniofuentes2551
    @higiniofuentes2551 7 หลายเดือนก่อน +1

    Thank you for this very useful video!

  • @maxchristianjava8368
    @maxchristianjava8368 2 ปีที่แล้ว +6

    Hello Sir. Parag your teaching skills are amazing and its very easy to understand how to demonstrate to us the program and also, i appreciate the manual creating the program, thank for for this you deserve my subscribe and i wish you all the best i hope your channel will grow soon! .

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว +1

      Thank You So Much for your wonderful words 🙏

    • @aldrazensagarino7375
      @aldrazensagarino7375 2 ปีที่แล้ว +1

      korek ka jan max

    • @simon8284
      @simon8284 2 ปีที่แล้ว +1

      @@DrParagShukla sir I have to choose one of the subjects in next semester those are Advance Java and Android Applications in Java... What to choose sir? Also I do DSA in Java only...
      And after Java for a proper Software Development Engineer what skills are required in both product and service based company?
      Please sir answer it as soon as possible...

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      If you did the DSA in Java and if you know the core Java then I think Android App Development is good option to select.

  • @reymarglennbantigue1041
    @reymarglennbantigue1041 ปีที่แล้ว +1

    This is very insightful video... Can I request something to add ? like putting stack algorithm on your search case then when searches reaches to 2 it will show 'STACK is FULL' something like that

    • @DrParagShukla
      @DrParagShukla  ปีที่แล้ว +1

      Thank you for wonderful suggestion.
      Will try to add the same

  • @mayank_singh_43
    @mayank_singh_43 2 ปีที่แล้ว +1

    owesome Video sir, completed learnt everything

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Glad that you learned from this video.
      Please share to needy.

  • @shashithakur6318
    @shashithakur6318 2 ปีที่แล้ว +1

    Awesome clarification done by u sir in one video all things get clear

  • @ramasgp
    @ramasgp 2 ปีที่แล้ว +1

    thank you for this video, this video can help me for my college task😍😍

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Glad that it helps
      My Pleasure

  • @rameshganapathi476
    @rameshganapathi476 10 หลายเดือนก่อน +1

    your demonstration java IDE is pleasing. what is the name of IDE which you have used here sir. this IDE which I would like to use. please....

  • @aviroopmitra5353
    @aviroopmitra5353 8 หลายเดือนก่อน +1

    can we do this whole thing without using collection ? Just using the file ?

  • @royadungo4155
    @royadungo4155 ปีที่แล้ว

    your awesome sir!
    thank you for sharing this video.❤🙏
    god luck and more power!!!👍

  • @nirveshjeewooth616
    @nirveshjeewooth616 ปีที่แล้ว +1

    Great content as well as useful and informative
    Thank u!

    • @DrParagShukla
      @DrParagShukla  ปีที่แล้ว

      Glad that it helps
      Thank you so much for your kind consideration

  • @jheelgala6353
    @jheelgala6353 2 ปีที่แล้ว +2

    Can we add inheritence in this as well and read multiple files?? For example:- This was for one company but how can we add data for other companies and store them using inheritence??

  • @kalidass6531
    @kalidass6531 3 ปีที่แล้ว +2

    Thank you so much Shukla for given this awesome video..........:)

  • @akashdhakane7103
    @akashdhakane7103 2 ปีที่แล้ว +1

    Best Video seen so far regarding file handling
    next Time pls explain theory too

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว +1

      Thank You
      Sure

    • @akashdhakane7103
      @akashdhakane7103 2 ปีที่แล้ว +1

      @@DrParagShukla provide source code too

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว +1

      Please find source code link
      videosourcecode.blogspot.com/2021/10/file-handling-in-java-insert-update.html

    • @akashdhakane7103
      @akashdhakane7103 2 ปีที่แล้ว +1

      @@DrParagShukla thank u so much keep supporting

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      @@akashdhakane7103 My Pleasure

  • @Eyuel29
    @Eyuel29 ปีที่แล้ว +1

    that was really helpful sir

  • @touheedasab6943
    @touheedasab6943 2 ปีที่แล้ว +1

    Sir you deserve this 👑 ❤‍🔥

  • @louisev.r8614
    @louisev.r8614 2 ปีที่แล้ว +1

    Thank you! This helped me with my work!

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว +1

      Glad that it helps
      My Pleasure

  • @manasrathore5199
    @manasrathore5199 2 ปีที่แล้ว +1

    Thanq so much sir...🙏🙏

  • @tapro7948
    @tapro7948 2 ปีที่แล้ว +1

    Amazing tutorial

  • @nehaaggarwal9056
    @nehaaggarwal9056 2 ปีที่แล้ว +3

    Sir where can you please post this whole code

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว +2

      Source Code Link
      videosourcecode.blogspot.com/2021/10/file-handling-in-java-insert-update.html

  • @nehaaggarwal693
    @nehaaggarwal693 2 ปีที่แล้ว +1

    hello sir I have to make java project on file handling and I have written it but getting some error can you pls help me resolve it...I have project evalution on this friday

  • @sterben1941
    @sterben1941 2 ปีที่แล้ว +1

    Glad I found this video, keep it up sir

  • @dexteranthonyremegio2481
    @dexteranthonyremegio2481 2 ปีที่แล้ว

    Thankkkkyou very muchhh to make this video ☺️☺️☺️☺️

  • @fahadali_465
    @fahadali_465 2 ปีที่แล้ว +2

    What a amazing video❤️

  • @unbelievableboy6892
    @unbelievableboy6892 2 ปีที่แล้ว +1

    Thanks a lot bro 😍😍😍😍 very useful video, you deserve better 💗

  • @slaveofmyALLAH
    @slaveofmyALLAH 2 ปีที่แล้ว +1

    Thanks sir

  • @jaylordjl6337
    @jaylordjl6337 2 ปีที่แล้ว +1

    Great video Thanks

  • @harshanarayana2356
    @harshanarayana2356 3 ปีที่แล้ว +1

    To write this program which topics should I aware?
    Collections and file handling is over?

    • @DrParagShukla
      @DrParagShukla  3 ปีที่แล้ว +1

      Concept of Collection must be clear before this
      Link for the same is th-cam.com/video/O-XrUJj83E0/w-d-xo.html

  • @EE-AlokikGupta
    @EE-AlokikGupta 2 ปีที่แล้ว +1

    Really helpful video 👍

  • @RahulKumar-ts3vu
    @RahulKumar-ts3vu ปีที่แล้ว

    Hello Dr. how can you add all the salaries only? Is that possible?

  • @deepfartiyal8208
    @deepfartiyal8208 2 ปีที่แล้ว +1

    thank you so much sir

  • @sweetenerbaes4735
    @sweetenerbaes4735 2 ปีที่แล้ว

    Ur country is legend

  • @anjelomanoranjan
    @anjelomanoranjan 11 หลายเดือนก่อน

    Thank you so much))

  • @tarunnamdev2619
    @tarunnamdev2619 ปีที่แล้ว

    love u sir ji

  • @osmanyrizo5487
    @osmanyrizo5487 3 ปีที่แล้ว +1

    thanks bro, you helped me a lot!!

  • @devoiddude
    @devoiddude 3 ปีที่แล้ว +1

    very helpful, thank you so much!

  • @ashekmahady4929
    @ashekmahady4929 2 ปีที่แล้ว +2

    Why is the employee.txt file not displaying the correct value after insertion? when the txt is open.

  • @killius1353
    @killius1353 ปีที่แล้ว

    What java concepts have been used in this code?

  • @ajayv6964
    @ajayv6964 3 ปีที่แล้ว +1

    Hello Sir,
    What should I do if I want to use marks as float..
    what are the changes should I do?

    • @DrParagShukla
      @DrParagShukla  3 ปีที่แล้ว

      You can declare marks as a float

    • @ajayv6964
      @ajayv6964 3 ปีที่แล้ว

      @@DrParagShukla I have another doubt too sir...is there any way to simplify this program....how can I study all this...can you share me any website link or material?

    • @DrParagShukla
      @DrParagShukla  3 ปีที่แล้ว

      @@ajayv6964 you can follow playlist of Java for beginners. If you are fresher

    • @ajayv6964
      @ajayv6964 3 ปีที่แล้ว

      @@DrParagShukla how to add test cases for this program using junit?

  • @subaash27
    @subaash27 3 ปีที่แล้ว +1

    Can we perform 2 function in a same code. In this example we perform Employee name,id,salary. Can we perform Billing System which consists of Cashier name,id and product name,id,price in a Same manner. Plese help me sir ,i struggle with this problem.

    • @DrParagShukla
      @DrParagShukla  3 ปีที่แล้ว

      Yes we can
      Create 2 different class one for Employees and another for Product and do the same.

  • @ikowg
    @ikowg 2 ปีที่แล้ว +2

    for the love of god, if you read my comments I just want to say THANK YOU SO MUCH

  • @nikunjvagadiya8765
    @nikunjvagadiya8765 3 ปีที่แล้ว +2

    super sir

  • @jann8334
    @jann8334 ปีที่แล้ว

    Hi sir, i've questions regarding this topic and how may i contact you ?

  • @dubeyankitsarar8084
    @dubeyankitsarar8084 2 ปีที่แล้ว

    Hello sir
    How to send data of CSV file to database.. please .. tell me sir.

  • @simthandathathokuhle9209
    @simthandathathokuhle9209 2 ปีที่แล้ว +1

    Please Sir, I found An error in line 30,it says Exception in thread "main" java.io.EOFException.

    • @ayaelalfy614
      @ayaelalfy614 10 หลายเดือนก่อน

      I found this error too, can you explain how you solved this error

  • @nickomabulac256
    @nickomabulac256 ปีที่แล้ว +1

    hello sir how can you connect this into database?

    • @DrParagShukla
      @DrParagShukla  ปีที่แล้ว

      To connect this into JDBC watch following Video
      th-cam.com/video/JiWw_kObYgs/w-d-xo.html

  • @gulledgeesey
    @gulledgeesey 2 ปีที่แล้ว +1

    whats is the name of the app you are using ??

  • @lanzmiguel8238
    @lanzmiguel8238 2 ปีที่แล้ว

    Hello how can I add a feature where employee ids cannot be duplicated?

  • @adrmrck13
    @adrmrck13 2 ปีที่แล้ว

    How to delete the brackets when in tostring?

  • @Nomnomnom165
    @Nomnomnom165 ปีที่แล้ว

    22:10 sir i still don't understand why you typecasted to Employee type, aren't li items already of Employee type?

  • @aqusatabassumsyedsadiqueal5920
    @aqusatabassumsyedsadiqueal5920 2 ปีที่แล้ว

    Life saving!

  • @firefly-lf2ew
    @firefly-lf2ew 2 ปีที่แล้ว

    sir how to do this by only using static arrays ?

  • @Jai_shri_ram66
    @Jai_shri_ram66 3 ปีที่แล้ว +1

    File handling on c program par bhi video banai

    • @DrParagShukla
      @DrParagShukla  3 ปีที่แล้ว +1

      It is already posted please check
      th-cam.com/video/1lNL31q4T5I/w-d-xo.html

  • @muhammadrayanmansoor4301
    @muhammadrayanmansoor4301 2 ปีที่แล้ว

    SIR please make a successive video on how to Email this todo list

  • @sweetenerbaes4735
    @sweetenerbaes4735 2 ปีที่แล้ว

    Sir how to create retrieve, please help me

  • @alyyahorapa9801
    @alyyahorapa9801 ปีที่แล้ว +1

    28:17 delete
    32:12 edit

  • @ganeshkrishnapakshi8992
    @ganeshkrishnapakshi8992 2 ปีที่แล้ว

    Hello sir by using this video I write the same program it was executed successfully but now when I executing the same it generates exception I.e. can not cast to ArrayList....please solve my problem

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Share your code here.
      I will correct it.

    • @ganeshkrishnapakshi8992
      @ganeshkrishnapakshi8992 2 ปีที่แล้ว

      @@DrParagShukla
      package IOStreams.Project2;
      import java.io.FileNotFoundException;
      import java.util.ArrayList;
      import java.util.Scanner;
      import java.io.*;
      import java.util.ListIterator;
      public class Emp implements java.io.Serializable
      {
      int id;
      String name;
      int age;
      double salary;
      Emp(int id, String name, int age, double salary)throws FileNotFoundException, IOException,ClassNotFoundException
      {
      this.id=id;
      this.name=name;
      this.age=age;
      this.salary=salary;

      }
      public String toString()
      {
      return name +" "+id+" "+age +" "+ salary;
      }

      }
      class EmployeeDemo
      {
      public static void main(String[] args) throws IOException,FileNotFoundException,ClassNotFoundException{
      int ch;
      Scanner sc=new Scanner(System.in);
      Scanner sc1=new Scanner(System.in);
      ArrayListal=new ArrayList();
      File f=new File("C:\\Users\\Ganesh Krishnapakshi\\Documents\\NetBeansProjects\\SelfLearnWipro\\Data1.txt");
      ObjectOutputStream op=null;
      ObjectInputStream oi=null;
      ListIterator li=null;
      if(f.isFile())
      {
      oi=new ObjectInputStream(new FileInputStream(f));
      al=(ArrayList)oi.readObject();
      oi.close();
      }
      do
      {
      System.out.println("Main Menu");
      System.out.println("1. Add an Employee");
      System.out.println("2. Display All");
      System.out.println("3. Exit");
      System.out.println("Please enter Your Choice");
      ch=sc.nextInt();
      switch(ch)
      {
      case 1:System.out.println("Add an Employee");
      System.out.println( "Enter number of Employee");
      int n=sc1.nextInt();
      for(int i=0;i

    • @ganeshkrishnapakshi8992
      @ganeshkrishnapakshi8992 2 ปีที่แล้ว

      @@DrParagShukla Thanks sir for considering my problem

  • @xueyouye8562
    @xueyouye8562 2 ปีที่แล้ว +1

    Hello sir I follow your step by step code. But the output looks like byte like [emp@2b5ldbs]

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      You need to override the toString() method

    • @xueyouye8562
      @xueyouye8562 2 ปีที่แล้ว +1

      @@DrParagShukla how sir? I follow all of your code.

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      @@xueyouye8562 please post your code here
      I will correct the same.

    • @xueyouye8562
      @xueyouye8562 2 ปีที่แล้ว

      Here sir , I can't proceed cuz of that problem

    • @xueyouye8562
      @xueyouye8562 2 ปีที่แล้ว

      Hello sir i fix it but..
      Exception in thread "main" java.io.InvalidClassException: Student; local class incompatible: stream classdesc serialVersionUID = 3490343042921908535, local class serialVersionUID = -2774891864663342562

  • @divyarajchudasama5003
    @divyarajchudasama5003 2 ปีที่แล้ว +1

    Sir i used your code and compiled it ,but after compiling its shows this kind of error.
    Note Employee java uses unchecked or unsafe operations
    Note Recompile with lint unchecked for details

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Yes this warning came whenever you use any deprecated operation.
      You may suppress Warning using annotations

  • @adrmrck13
    @adrmrck13 2 ปีที่แล้ว

    sir how about if i will use the ename to search and delete pls help

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว +1

      Use .equals() function to match the String

    • @adrmrck13
      @adrmrck13 2 ปีที่แล้ว

      where to insert sir? string ename = s1.nextLine(); or string ename = s1.equals(); ?

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Try following
      if(file.isFile()){
      ois = new ObjectInputStream(new FileInputStream(file));
      al = (ArrayList)ois.readObject();
      ois.close();
      boolean found = false;
      System.out.println("Enter Name to Search : ");
      String ename = s.nextLine();
      System.out.println("-------------------------------------");
      li = al.listIterator();
      while(li.hasNext()){
      Employee e = (Employee)li.next();
      if(e.ename.equals(ename)){
      System.out.println(e);
      found = true;
      }
      }
      if(!found)
      System.out.println("Record Not Found...!");
      System.out.println("-------------------------------------");
      }else{
      System.out.println("File not Exists....!");
      }

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Let me know if not work

    • @adrmrck13
      @adrmrck13 2 ปีที่แล้ว

      Okay sir i will let you know

  • @mehot3251
    @mehot3251 2 ปีที่แล้ว +1

    Hello sir, how can I save this file?

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      File will be created on path you have mentioned.

  • @Lakshmankablog
    @Lakshmankablog 2 ปีที่แล้ว +2

    Please provide the code link of this video

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Source Code available at following link
      videosourcecode.blogspot.com/2021/10/file-handling-in-java-insert-update.html

  • @无聊的男孩
    @无聊的男孩 2 ปีที่แล้ว

    Sir, may u help me to check my code as I cannot print the output in the search case and I dunno where is the error...😭

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Yes Sure
      Please write your code here
      I will look into the same.

    • @无聊的男孩
      @无聊的男孩 2 ปีที่แล้ว

      @@DrParagShukla Thank you sir, but I have find out the problem and solve it, now the code is functioning perfectly. Thanks a lot for this perfect video. Nice explanation and very easy to understand. Hope to see more videos in this channel. I hope you will get millions subscribe in the future, keep it up.

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Thank you so much for your kind words

  • @russeltulipat7709
    @russeltulipat7709 2 ปีที่แล้ว

    How about in c++

  • @andicastillo1990
    @andicastillo1990 2 ปีที่แล้ว

    When I display data from file it loads up as null. How do I fix this?

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Can you share your code?
      I will correct it

  • @kunal9948
    @kunal9948 ปีที่แล้ว

    Sir I have problem in searching

  • @ictintegratedintoleadershi504
    @ictintegratedintoleadershi504 ปีที่แล้ว

    Where do i find the code

  • @unkown3143
    @unkown3143 ปีที่แล้ว

    which IDE is using anyone?

  • @grashengenandoy869
    @grashengenandoy869 2 ปีที่แล้ว +1

    do you have your code of this sir?

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว +1

      Following is the link of source code
      videosourcecode.blogspot.com/2021/10/file-handling-in-java-insert-update.html

    • @grashengenandoy869
      @grashengenandoy869 2 ปีที่แล้ว

      @@DrParagShukla thank you so much sir

    • @grashengenandoy869
      @grashengenandoy869 2 ปีที่แล้ว

      @@DrParagShukla thank you so much sir

  • @aadharshr7025
    @aadharshr7025 2 ปีที่แล้ว

    Sir can we get a copy of the code please?

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Source code ia available at following link
      videosourcecode.blogspot.com/2021/10/file-handling-in-java-insert-update.html

  • @me_debankan4178
    @me_debankan4178 2 ปีที่แล้ว +1

    37:20

  • @semjafet413
    @semjafet413 ปีที่แล้ว

    u have source code for this?

  • @ayushdabhi5138
    @ayushdabhi5138 3 ปีที่แล้ว +2

    can you provide source code ?

    • @DrParagShukla
      @DrParagShukla  3 ปีที่แล้ว +3

      Following is the link of source code
      videosourcecode.blogspot.com/2021/10/file-handling-in-java-insert-update.html

    • @ayushdabhi5138
      @ayushdabhi5138 3 ปีที่แล้ว +2

      @Dr. Parag Shukla Thanks ,, Very useful video . your explanation is very good .

    • @DrParagShukla
      @DrParagShukla  3 ปีที่แล้ว +1

      My Pleasure

  • @technology9356
    @technology9356 2 ปีที่แล้ว +1

    sir share code please

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Source Code available at following link
      videosourcecode.blogspot.com/2021/10/file-handling-in-java-insert-update.html

  • @sirishareddy7745
    @sirishareddy7745 3 ปีที่แล้ว +2

    source code

    • @DrParagShukla
      @DrParagShukla  3 ปีที่แล้ว +1

      Following is the link of source code
      videosourcecode.blogspot.com/2021/10/file-handling-in-java-insert-update.html

  • @deelangengania7369
    @deelangengania7369 2 ปีที่แล้ว

    How to loop back to Enter Employee Number until I get a valid input?
    case 1:
    System.out.print("Please Enter How Many Employees You Want To Add:");
    int n = s.nextInt();
    for (int i = 0; i < n; i++) {
    boolean found = false;
    System.out.print("Enter Employee Number: ");
    int empno = s.nextInt();
    System.out.println("--------------------------------------------------");
    li = al.listIterator();
    while (li.hasNext()) {
    Employee e = (Employee) li.next();
    if (e.empno == empno) {
    System.out.println("The Employee Number Already Exists");
    System.out.println("--------------------------------------------------");
    found = true;
    }

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว +1

      Put another do while loop in case 1

    • @deelangengania7369
      @deelangengania7369 2 ปีที่แล้ว

      @@DrParagShukla tried adding a do loop before the while loop but it keeps on saying that empno is not not declared

  • @wizardfire2270
    @wizardfire2270 2 ปีที่แล้ว +1

    Very helpful video.. thank you so much sir.

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      Glad to hear that it helps
      My Pleasure

  • @secretsorcerer
    @secretsorcerer 2 ปีที่แล้ว +1

    Thank you sir, it really helped me a lot.

    • @DrParagShukla
      @DrParagShukla  2 ปีที่แล้ว

      My Pleasure
      Glad that it helps

    • @muhammadrayanmansoor4301
      @muhammadrayanmansoor4301 2 ปีที่แล้ว

      @@DrParagShukla SIR please make a successive video on how to Email this todo list