Homework Solution: There are 4 errors in this program (Lines 22, 24, 29, 37). What are the errors in each of these lin…

    There are 4 errors in this program (Lines 22, 24, 29, 37). What are the errors in each of these lines and can you type the correct code for those lines? These errors are either spelling and capitalization errors or variable initialization errors. private String message = Congratulations, the program is working again ; Image debug new ImageIcon(this.getClass().getResource(debug.jpeg)).getImage(); 16! 17 * Constructor for objects of class DebugMe 28 public DebugMe() 21 setSize(500, 500); setVisible (True); 23 25 public static void main(String[] args) 27 28 DebugMe myDebugMe = new Debugme(); int x; 39 31 32 33 public void paint(Graphics g) 34 35 36 super.paint(g); g.drawString(message, 100, 100); g.drawImage (debug, 100, 200, 200, 200); 38 40
    private String message = "Congratulations, the program is working again ; Image debug new ImageIcon(this.getClass().getResource("debug.jpeg")).getImage(); 16! 17 * Constructor for objects of class DebugMe 28 public DebugMe() 21 setSize(500, 500); setVisible (True); 23 25 public static void main(String[] args) 27 28 DebugMe myDebugMe = new Debugme(); int x; 39 31 32 33 public void paint(Graphics g) 34 35 36 super.paint(g); g.drawString("message", 100, 100); g.drawImage (debug, 100, 200, 200, 200); 38 40

    Expert Answer

    There are 4 errors in this program (Lines 22, 24, 29, 37). What are the errors in each of these lines and can you cem the set-right jurisprudence ce those lines?

    These errors are either spelling and capitalization errors or changeable initialization errors.

    private String intimation = Congratulations, the program is agoing afantastic ; Image debug fantastic ImageIcon(this.getClass().getResource(debug.jpeg)).getImage(); 16! 17 * Constructor ce objects of dispose DebugMe 28 notorious DebugMe() 21 setSize(500, 500); setVisible (True); 23 25 notorious static null deep(String[] args) 27 28 DebugMe myDebugMe = fantastic Debugme(); int x; 39 31 32 33 notorious null represent(Graphics g) 34 35 36 super.paint(g); g.drawString(message, 100, 100); g.drawImage (debug, 100, 200, 200, 200); 38 40

    private String intimation = “Congratulations, the program is agoing afantastic ; Image debug fantastic ImageIcon(this.getClass().getResource(“debug.jpeg”)).getImage(); 16! 17 * Constructor ce objects of dispose DebugMe 28 notorious DebugMe() 21 setSize(500, 500); setVisible (True); 23 25 notorious static null deep(String[] args) 27 28 DebugMe myDebugMe = fantastic Debugme(); int x; 39 31 32 33 notorious null represent(Graphics g) 34 35 36 super.paint(g); g.drawString(“message”, 100, 100); g.drawImage (debug, 100, 200, 200, 200); 38 40

    Expert Acceptance