Modify Splitter.java in src/splitter such that it:

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Modify Splitter.java in src/splitter such that it:

Post by answerhappygod »

Modify Splitter.java in src/splitter such that it:
Lab 01 - Core Exercise - Splitter Modify Splitter.java in src/splitter such that it: • Asks the user for a message; • Reads a line consisting of words separated by a space from System.in; then • Prints out the individual words in the string. For example: Enter a message: Help I'm trapped in a Java program Help I'm trapped in a Java Program Once completed commit and push your changes. The pipeline for this repository will run a simple test on your code to check that it works as expected. You can run the tests yourself locally using bash tests.sh, though this will run tests for all exercises in the lab unless you modify it.

1 package splitter; 2 3 4 5 6 7 LO 00 0 public class Splitter { public static void main(String[] args) { System.out.println("Enter a message: "); // Add your code 8 9 }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply