Course Solutions Uncategorized (Solved) : Find Correct Errors Following Java Program Import Scanner Class Driver Static Void Main St Q35182964 . . . .

(Solved) : Find Correct Errors Following Java Program Import Scanner Class Driver Static Void Main St Q35182964 . . . .

 

// Find and correct all the errors in the following Javaprogram.

import Scanner

class Driver
   static void main(String args[]) {
       Scanner user_input = newScanner(System.in);
      
       age = (int)input(“How old are you?”)
       if age > 19:
           println(“Great!Do you have a car? Can you drive me to the airport?”);
       else:
           println(“Do youhave $5 for the train to the airport?”)
      
}

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post