12. Integer to Roman.java - public class Solution cfw public String intToRoman(int num cfw int val = cfw_1 5 10 50 100 500 1000 String roman =

12. Integer to Roman.java - public class Solution cfw...

This preview shows page 1 out of 1 page.

public class Solution { public String intToRoman(int num) { int[] val = {1, 5, 10, 50, 100, 500, 1000}; String[] roman = {"I", "V", "X", "L", "C", "D", "M"}; String[] I = {"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"}; String[] X = {"", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX",
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Spring '18

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes