Question: marks) Io the below code, there are 9 syntax errors. identify and suggest fixes for them. Only list 91 be class Questions ( public statie

 marks) Io the below code, there are 9 syntax errors. identify

marks) Io the below code, there are 9 syntax errors. identify and suggest fixes for them. Only list 91 be class Questions ( public statie void main(string) arga) Throws JoLxceplie int sum -sum( 7.3, 8 printMsg "hello" Scanner keyb new Scanner (System.in) System.out print ("Enter a number: int value keyb.next o PrintMessage ( sum(aum, value) 9. 10. 1I Public static double sum( int a, int b) t return a+b: 13. publie statie string printHessage( String msg)Thnows LoEkce otie 18. 19. 20. 21. 22. File f- File"log.10g") PrintWriter p - new PrintWriter () ?println( "MSG : " + msg ); P close0 23.1/ This is supposed to be aligned to the left "''feit?ava .util.Scannerj 3. double Sum kova,to System out. Prist "hello 8 double value - Keyb, hos nesto 12. double a, double b)L

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!