Ad
  • Custom User Avatar

    Theres more too it than that bud. Follow the logic. You're saying everything that's not 0 and divisable by 3 is Java.

    What about Coffe, CoffeeScript, and Javascript?

    if (n != 0) {
          if (n%3==0 && n%4 != 0) {
            if(n%2==0)  {
              return "JavaScript";
            }
            else {
              return "Java";
            }
          
          }  // not devis 4
          
          else if (n%3==0 && n%4==0) {
            if(n%2==0) {
              return "CoffeeScript";
            }
            else {
              return "Coffee";
            }
            
          } // devise form  
              
        } // MAIN IF
        
        
        return "mocha_missing"; // ELSE!!!!!!!!!!!!!!!!!!
    
  • Custom User Avatar

    I am having the same problem. Solved it in Python, but for the life of me the test cases for Java are not lining up with how I would assume a "best practice" solution would look like.

  • Custom User Avatar

    you idiot, come my sit. -- 원익 이순신