Login

Title

Using the Java API documentation to solve a problem

Course

CS1

Abstract

This is an assignment focused on using Java API documentation to find methods that aid in solving a problem. In it, students must write a program that parses text and "cleans it up" (in particular: a name, address, and phone number, entered in a sloppy way by a user).

This is best suited to students who have only a basic knowledge of Strings and their methods, as it then forces them to dig around in the API documentation for Strings in order to find methods that accomplish their goals.

Author

Norm Krumpe

Genre

API documentation

Assignment Duration

One Week

Communication Skill

reading, writing

Technical Skill

Programming language basics

Workplace Scenario

The software you will write almost always depends on making use of packages, classes, and methods that were developed by other programmers. In order to use software written by others, it is necessary to be able to navigate and understand the documentation for that software.

In this assignment, you will need to solve a programming problem that requires you to use methods you have not seen or used before. You will produce a program that performs some fairly sophisticated parsing of Strings...parsing that is difficult to perform without first navigating the available methods in the String class.

When you are finished, you will report to your instructor on the methods that you used to solve the problem.

Team Size

N/A

Collection

Citation

Norm Krumpe, “Using the Java API documentation to solve a problem,” Incorporating Communication Outcomes into the Computer Science Curriculum, accessed May 18, 2020, http://cs-comm.lib.muohio.edu/items/show/81.

License

Creative Commons License

Comments

Allowed tags: <p>, <a>, <em>, <strong>, <ul>, <ol>, <li>