cds.util
Class RomanNumeral

java.lang.Object
  extended bycds.util.RomanNumeral

public class RomanNumeral
extends java.lang.Object


Field Summary
private static java.lang.String[] letters
           
private  int num
           
private static int[] numbers
           
 
Constructor Summary
RomanNumeral(int arabic)
           
RomanNumeral(java.lang.String roman)
           
 
Method Summary
private  int letterToNumber(char letter)
           
 int toInt()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

num

private final int num

numbers

private static int[] numbers

letters

private static java.lang.String[] letters
Constructor Detail

RomanNumeral

public RomanNumeral(int arabic)

RomanNumeral

public RomanNumeral(java.lang.String roman)
Method Detail

letterToNumber

private int letterToNumber(char letter)

toString

public java.lang.String toString()

toInt

public int toInt()