Question link: https://www.codechef.com/problems/LUCKFOUR
Scanner sc = new Scanner(System.in);
int taker = sc.nextInt();
String tester = String.valueOf(taker);
int counter = 0;
for (int i = 0; i < tester.length();i++)
if (tester.charAt(i) == ‘4’)
That’s my code, the code seems to work in eclipse but after I upload it onto CodeChef, its wrong. Anyone know whats wrong with my code?