Question: Write a program that declares the following variables in the main method: name is of type String, age is of type int and city is

Write a program that declares the following variables in the main method: name is of type String, age is of type int and city is of type String.
Note: "declare a variable" means the same as "create a variable". Requirements:
Declare a variable name of type String.
Declare a variable age of type int.
Declare a variable city of type String. 3 variables must be declared.

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!