2
rucha
4y

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
  • 7
    I'm sure there is a jQuery plugin for that.
  • 1
    void method(int i) {
    if (i > 10) {
    throw new IllegalArgumentException("yo");
    } else {
    System.err.println("what should I do now?");
    }
    }
  • 4
    @Fast-Nop You mean a JS framework that I can import easily with npm in 5 days?

    Also, welcome, little green circle. May your life be filled with pain and suffering so that you'll never run out of material to post.
  • 4
    @asgs how do I do it for <11 though??? 🤔🤔🤔🤔
  • 2
    @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