Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Create a NetBeans project under the name PlayingWithJavaStrings. 2. In the source code do the following: i) Create two separated String variables, one for
1. Create a NetBeans project under the name PlayingWithJavaStrings.
2. In the source code do the following:
i) Create two separated String variables, one for the first and the other for the last names and set them to John and Smith, respectively.
ii) Create a String variable for the full name and then concatenate the first and last name variables into it.
3. Using the String methods found in the Java API:
- Print the full name in the terminal window
- print in the terminal window the contents of the full name variable in all CAPITAL LETTERS
- same as above but all in lower case letters
- Print the number of letters that the full name has
- Print the 6th letter of the full name
- Create two more String objects with the contents of Mary (first name) and Smith (last name). Compare if John and Mary have the same last name and if so print that they are related, otherwise that they are not
solve using java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started