RomanNumeral -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// A+ Computer Science  -  //Name -  //Date -  //Lab  -  import static java.lang.System.*;  public class RomanNumeral  private Integer number;  private String roman;  private final static int[] NUMBERS= {1000,900,500,400,100,90,  50,40,10,9,5,4,1};  private final static String[] LETTERS = {"M","CM","D","CD","C","XC", 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "L","XL","X","IX","V","IV","I"}; public RomanNumeral(String str) { } public RomanNumeral(Integer orig) { } public void setNumber(Integer num) { } public void setRoman(String rom) { } public Integer getNumber() { return number; } public String toString() { return roman + "\n"; } }...
View Full Document

Page1 / 2

RomanNumeral -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online