Answered step by step
Verified Expert Solution
Link Copied!

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:

  1. Print the full name in the terminal window
  2. print in the terminal window the contents of the full name variable in all CAPITAL LETTERS
  3. same as above but all in lower case letters
  4. Print the number of letters that the full name has
  5. Print the 6th letter of the full name
  6. 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

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

Write an elaborate note on marketing environment.

Answered: 1 week ago