Question: Write a java program that takes a line of text from the user and prints only the first word from the entered line, and first
Write a java program that takes a line of text from the user and prints only the first word from the entered line, and first character from the first word (use Scanner Class)
Example: Line Entered JAVA Object Oriented Programming Output should be First word: JAVA First character: J
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
