@@ -0,0 +1,667 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=4788%0A%0Apublic class CheckFunction %7B%0A%09public int newFunction(String code) %7B%0A%09%09int totalDashes = 0;%0A%09%09for (int i = 0; i %3C code.length(); ++i) %7B%0A%09%09%09switch (code.charAt(i)) %7B%0A%09%09%09case '0': totalDashes += 6; break;%0A%09%09%09case '1': totalDashes += 2; break;%0A%09%09%09case '2': totalDashes += 5; break;%0A%09%09%09case '3': totalDashes += 5; break;%0A%09%09%09case '4': totalDashes += 4; break;%0A%09%09%09case '5': totalDashes += 5; break;%0A%09%09%09case '6': totalDashes += 6; break;%0A%09%09%09case '7': totalDashes += 3; break;%0A%09%09%09case '8': totalDashes += 7; break;%0A%09%09%09case '9': totalDashes += 6; break;%0A%09%09%09default: break;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return totalDashes;%0A%09%7D%0A%7D%0A

Create CheckFunction.java