Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task #3 - Use String butit-in methods to perform the tasks In this task, you are required to utilize the built-in methods of the String
Task #3 - Use String butit-in methods to perform the tasks In this task, you are required to utilize the built-in methods of the String class in your simple CLI Java application, the following are the requirements: Use NetBeans IDE and CLI to work on this task Write the code in the main() based on the following instructions: 1. Declare a String object variable named word1 and assign the value "CIS2700JavaStringCis2700" to it. 2. Extract partial value "CIS2700" from word1 and assign the extracted value to another String variable named word2. 3. Extract partial value "Cis 2700" from word1 and assign the extracted value to another String variable named word3. 4. Perform the equivalency check on variables word2 and word3 so that the comparison result is true. 5. Print the value of word, word2, and word3, as well as the comparison result to the console. Please make sure you name your project by using following naming convention: o Task03jsmith 1234 (Task01 + first initial + last name + last 4 digits of WIN#) The output of the application will look like following: AAE 3 run: The wordi is: CIS2700 JavaStringCis2700, The word2 is: CIS2700, and word is: Cis2700 The comparison of word2 and word3 is: true BUILD SUCCESSFUL (total time: 0 seconds)
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