Question: Selenium Certification Training Course Module 2 : Arrays and Collection Framework in Java Assignment Brain 4 ce Education Solutions Pvt . Ltd . Module 2
Selenium Certification Training Course
Module : Arrays and Collection
Framework in Java
Assignment
Braince Education Solutions Pvt Ltd
Module : Arrays and Collection Framework in Java
B r a i n c e E d u c a t i o n S o l u t i o n s P v t L t d Page
Case Study
ABC corporation is working on a migration project. Initially, their project was written
in C and now they wanted to migrate it to Java. The project is basically related to CRM
processing where students are expected to input the details and, on the backend, it is
converting and saving the details on an Array. Now since we are migrating the
application to Java for all stringrelated operations, we will be performing with the
String class.
Considerations
Java is installed and running on the system.
Key issues
Download and extract Eclipse or any suggested editor in your machine before
performing the actual task.
Java installation must be validated before performing the actual task.
Business benefits
By performing the given task, we can have multiple benefits, for the organization.
Timesavers
Track all the execution.
Proper reporting format should be generated.
Sanity and regression suites can be created and executed by multiple users
automatically.
Approach to solve
Please perform the belowmentioned tasks:
Assume the given data for your scenarios:
String a abcdef;
String b xyz;
String c abcxy;
Verify the length of the a variable should be greater than the length of the c
variable and should be less than the length of the b variable.
a variable should not be the same as the b variable and c variable.
c variable should be the same as a variable irrespective of the case.
a variable should contain cd and should not contain xy
Convert the b variable into uppercase and verify it should contain Z and
should not contains z
Module : Arrays and Collection Framework in Java
B r a i n c e E d u c a t i o n S o l u t i o n s P v t L t d Page
Validated if the length of the a variable is greater than the length of b and
less than the length of the c variable.
Perform concatenate on a and b variables and verify the length is less than
the c variables length or greater than
Validate if the a variable start with ab and the b variable should not ends
with yz
Validate if the c variable contains space and should not contain
Note: All the operations will be performed under a single class named
AbcStringMigration.class.
Enhancements for code
Follow basic Java programming standards and naming conventions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
