Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following program will compile but it has run-time errors. Find and fix the errors. import java.util.Scanner; public class Input_personal _data Public static void main(Stringl)

image text in transcribed
The following program will compile but it has run-time errors. Find and fix the errors. import java.util.Scanner; public class Input_personal _data Public static void main(Stringl) args) Scanner k- new Scanner(System.in); String s1 "Enter your full name:":S int age; System.out.print (sl); name k.nextLine0: System.out.print (s2); age k.nextlntO: name.toUpperCase): System.out.println" Your name in upper case is: "+name String s2 - "Enter your age:" String name; + and you are .. + age + years old")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

=+j on to staff their operations in the global marketplace.

Answered: 1 week ago