2
rucha
5y

Hey hi guys I m new in this app
I have question for you
Design a method to accept only no which
Is <10.

Comments
  • 6
    I'm sure there is a jQuery plugin for that.
  • 0
    void method(int i) {
    if (i > 10) {
    throw new IllegalArgumentException("yo");
    } else {
    System.err.println("what should I do now?");
    }
    }
  • 4
    @asgs how do I do it for <11 though??? 🤔🤔🤔🤔
  • 1
    @Jilano yes but that framework have performance issues when you enter big numbers. So you have to embed that framework to a new language called C## that is designed just for this problem. Somebody here talked about loadbalancing and stuff but I dont really tried it.
  • 1
    void whyTho(long l) {
    if(l < 10) {
    System.out::println("Cool meme");
    } else {
    die();
    }
    }

    void die() {
    System.exit(1);
    }
  • 1
    Otherwise Welcome to devRANT
  • 1
    @dontPanic write another method
  • 0
    @asgs thanks sir@asgs
Add Comment