MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/NumberToRoman.java:52–63  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

50 }
51
52 public static void main(String[] args) {
53 Scanner sc = new Scanner(System.in);
54 while (true) {
55 try {
56 System.out.println("Please enter an Integer value");
57 int num = Integer.parseInt(sc.next());
58 System.out.println(intToRoman(num));
59 } catch (Exception e) {
60 System.out.println("Something went wrong, please make sure to enter integer only");
61 }
62 }
63 }
64}

Callers

nothing calls this directly

Calls 1

intToRomanMethod · 0.95

Tested by

no test coverage detected