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
-
ClassDescriptionThis 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
FileFilter
that only accepts files that are directories.This classes demonstratesMap
s in the collection classes.This program demonstratesFile
,FileFilter
, andFilenameFilter
by searching recursively through directories and printing out the names of Java source files.This class is aFilenameFilter
that 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 aComparator
that comparesPerson
s based on their shoe size.This class demonstrates object serialization by reading an instance ofDate
from a file.This program takes a file whose name is given on the command line and readsdouble
s from it.This program reads text from the console until the user enters-1
at which point it prints what the user has entered.This class demonstrates theProperties
class 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 readsdouble
s 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 asWriteToFile
but uses the new "try with resource" language feature of Java 7.This program writes the arguments from the command line to a text file.