Question
IN JAVA!!! In a file called StringSearch.java, youll write a class StringSearch with a main method that uses command-line arguments as described below. The main
IN JAVA!!!
In a file called StringSearch.java, youll write a class StringSearch with a main method that uses command-line arguments as described below.
The main method should expect from 1 to 3 command-line arguments:
$ java StringSearch "" " " " "
The overall goal of StringSearch is to take a file of text, search for lines in the file based on some criteria, then print out the matching lines after transforming them somehow.
The
Queries
The
length=
greater=
less=
contains=
starts=
ends=
not(
Transforms
The
upper which transforms the line to uppercase
lower which transforms the line to lowercase
first=
last=
replace=
Where you see
You may find the built-in Java String split method useful.
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