Question: Create 3 java variables, an int(age), a double(gpa), and a String(homeTown). Ask the user to input his or her home town and do the following
Create 3 java variables, an int(age), a double(gpa), and a String(homeTown).
Ask the user to input his or her home town and do the following with the home town:
Print a message welcoming the person from their home town.
Capitalize (upperCase()) all letters in the home town and print it again. hint: ( upperTown = homeTown.toUpperCase(); )
print out the number of letters in the home town. hint: (int len=homeTown.length();)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
