Question: Why does this not give me a word count? import java.util.Scanner; public class SlashFigure {public static void main(String[] args) {Scanner scan = new Scanner(System. in);
Why does this not give me a word count?

import java.util.Scanner; public class SlashFigure {public static void main(String[] args) {Scanner scan = new Scanner(System. in); System.out.println("Enter some words"); String Justice = scan.next(); int word = 1; for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
