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

Method main

Programs/LuckyNumber.java:25–40  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

23
24 //Main method
25 public static void main(String[] args)
26 {
27 Scanner sc = new Scanner(System.in);
28 System.out.println("Enter the number to be checked : ");
29 int a = sc.nextInt();
30 LuckyNumber ob = new LuckyNumber();
31 boolean res = ob.checkLucky(a);
32 if(res == true)
33 {
34 System.out.println(a+" is a Lucky Number");
35 }
36 else
37 {
38 System.out.println(a+" is NOT a Lucky Number");
39 }
40 }
41}

Callers

nothing calls this directly

Calls 1

checkLuckyMethod · 0.95

Tested by

no test coverage detected