Ad
Code
Diff
  • package cat;
    public class kata{
      public static int doubleValue(int x) {
        return x*2;
      }
    }
    • package cat;
    • public class kata{
    • public static int doubleValue(int x) {
    • var sum = 0;
    • for (var i = 0; i < 2; i++)
    • sum += x;
    • return sum;
    • return x*2;
    • }
    • }