package org.kodejava.example.text;
import java.text.CharacterIterator;
import java.text.StringCharacterIterator;
public class StringCharacterIteratorExample...
Program demonstrating use of a map to count the frequency of words in a file.
import java.io.File;
import java.io.IOException;
import java.util.Map;
import...
A class for measuring how long it takes for a program to run
/**
A class to measure time elapsed.
*/
public class Stopwatch
{
private long startTime;
...
A few brief examples of String manipulations
public class StringExample
{ public static void main(String[] args)
{ String s1 = "Computer Science";
int...
A simple example of using for loops to calculate factorial. Uses the built in int data type so only good to 13!
public class Factorial
{
public static...