Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help me write code for this program please Instructions CategorizeStrings.java + 1 import java. util.*; Write an application that accepts up to 20 2 public

Help me write code for this program please

image text in transcribed
Instructions CategorizeStrings.java + 1 import java. util.*; Write an application that accepts up to 20 2 public class CategorizeStrings 3 { Strings , or fewer if the user enters the public static void main (String args) terminating value ZZZ. Store each String in 5 one of two lists-one list for short Strings that // your code here are 10 characters or fewer and another list for long Strings that are 11 characters or more. 8 After data entry is complete, prompt the user to 9 // display( ) 10 } enter which type of String to display, and then 11 output the correct list. 12 For this exercise, you can assume that if the user does not request the list of short strings, the user wants the list of long strings. If a requested list has no Strings , output The list is empty. Prompt the user continuously until a sentinel value, ZZZ, is entered. Grading Write your Java code in the area on the right. Use the Run button to compile and run the code. Clicking the Run Checks button will run pre-configured tests against your code to calculate a grade. Once you are happy with your results, click the Submit button to record your score

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

Students also viewed these Programming questions