1
Student Name: __________________
Class and Section __________________
Total Points (20 pts) __________________
Due: Feb 4, 2010 before the class
Project: Counting the Keywords in Java Source Code
CSCI 2410 Data Structures and Algorithms
Armstrong Atlantic State University
Problem Description:
Write a program that reads a Java source-code file and reports the number of
Analysis:
(Describe the problem including input and output in your own words.)
Design:
(Describe the major steps for solving the problem.)
2
Testing: (Describe how you test this program)
What to submit?
1. Name this class Exercise22_03. Compile and Submit to LiveLab (you must submit the
program regardless whether it complete or incomplete, correct or incorrect)
2. Fill in self-evaluation:
1. Can your program pass file name from the command-line? _______________
2. Can your program read text contents from the file? _______________
3. Can your program read a line from the file? _______________
3
3. Test your program to count the keywords in the following file:
// This application displays Welcome to Java!
public class Welcome {
public Welcome() {
super();
}