Question: In this lab write in java, you will first read in an array of strings, then a string to compare to ( I ' ll

In this lab write in java, you will first read in an array of strings, then a string to compare to (I'll call it s here), and then for each string in the array the program will print "yes" if the number is greater than s, and "no" otherwise.
The array is specified by an integer designating the array size, and then the actual strings. For example, this data:
4
a l g s
specifies the array ["a","l","g","s"].
So if the input is
4
a l g s
h
then the output should be
no
yes
no
yes
since the array is ["a","l","g","s"] and s is 42.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!