Question
cheak the code my output Please enter words, enter STOP to stop the loop. cup spoon fork bowl plate knife STOP 6 [cup, spoon, fork,
cheak the code
my output
Please enter words, enter STOP to stop the loop. cup spoon fork bowl plate knife STOP 6 [cup, spoon, fork, bowl, plate, knife] [spoon, fork, bowl, plate]
the code
import java.util.ArrayList; import java.util.Scanner;
public class Main {
public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Please enter words, enter STOP to stop the loop: "); String s = ""; ArrayList
}
Your code has been evaluated against a set of test data. You had 15 out of 18 tests pass correctly. Your score is 83%. Test#1:16 Gs Case #1 passed Case #2 passed Case #3 passed Test#2:same word Case #1 passed Case #2 passed Case #3 passed Test#3:2 words Case #1 passed Case #2 passed Case #3 passed Test#3:1 word Case #1 passed Case #2 passed Case #3 passed Test#4:0 word Case #1 passed Case #2 passed Case #3 passed Test#5:stop word Case #1 failed Case #2 failed Case #3 failed
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