Question: Write a program that reads a file one character at a time and prints out how many characters are uppercase letters, lowercase letters, digits, white

Write a program that reads a file one character at a time and prints out how many characters are uppercase letters, lowercase letters, digits, white space, and something else.
\table[[in1.txt,in2.txt]]
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Characters
{
public static void main(String args) throws FileNotFoundException
{
Scanner console = new Scanner(
System.in);
System. out.print ("Input file: ");
String inputFileName = console, next () ;
File inputFile = new File(inputFileName);
Scanner in = new Scanner(inputFile);
in. useDelimiter(");
 Write a program that reads a file one character at a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!