Package edu.pdx.cs410J.core
package edu.pdx.cs410J.core
This package contains classes that demonstrate Java's core API.
Some Core API resources:
- General information about I/O
- The I/O trail from Sun's Java Tutorial
- General information about the Collections Framework
- The Collections trail from Sun's Java Tutorial
- General information about Utility classes
-
ClassesClassDescriptionThis class represents a box of cereal.Compares two boxes of ceral by their priceThis class demonstrates several of the collection classes.This class is a
FileFilterthat only accepts files that are directories.This classes demonstratesMaps in the collection classes.This program demonstratesFile,FileFilter, andFilenameFilterby searching recursively through directories and printing out the names of Java source files.This class is aFilenameFilterthat only accepts files that end in .java.This program demonstrates what happens when you modify a collection while iterating over it.This classes parses strings from the command line using aStringTokenizer.This class is aComparatorthat comparesPersons based on their shoe size.This class demonstrates object serialization by reading an instance ofDatefrom a file.This program takes a file whose name is given on the command line and readsdoubles from it.This program reads text from the console until the user enters-1at which point it prints what the user has entered.This class demonstrates thePropertiesclass and shows how to use the JVM's system properties.Demonstrates how wrapper objects can be used to store primitive values in a collection.This program readsdoubles from the command line and writes them to a file.This program writes the arguments from the command line to a text file.This program does the same thing asWriteToFilebut uses the new "try with resource" language feature of Java 7.This program writes the arguments from the command line to a text file.