Question: I need some help with given code . For a presentation , I need to explain this code . Can some one give me the

I need some help with given code.For a presentation,I need to explain this code.Can some one give me the explanation?
JLabel lblPayHour = new JLabel("Pay / Hour :");lblPayHour.setFont(new Font("Times New Roman", Font.BOLD, 15));lblPayHour.setBounds(320,593,144,14);p1.add(lblPayHour);JLabel background = new JLabel("New label");background.setIcon(new ImageIcon("bgd.png"));background.setBounds(0,0,714,757);p1.add(background);try { BufferedReader reader1= new BufferedReader(new FileReader(file1)); int totalLines =0; while (reader1.readLine()!= null) totalLines++; reader1.close();for (int i =0; i < totalLines; i++){String line = Files.readAllLines(Paths.get(file1)).get(i); String x = line.substring(0,6); if (x.equals("2.User")){String userN = Files.readAllLines(Paths.get(file1)).get(i).substring(15);String skill = Files.readAllLines(Paths.get(file1)).get(i+4).substring(13);String address = Files.readAllLines(Paths.get(file1)).get(i+3).substring(13);String pay = Files.readAllLines(Paths.get(file1)).get(i+5).substring(13);txtFatimaBegum.setText(userN);txtCooking.setText(skill);txtStreetRoadDhaka.setText(address);txtTk.setText(pay+"TK");}}} catch (Exception ex){ return; }}}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!