I would use neither an option pane nor a buffered reader. I would use a Scanner. Actually, I would wrap the Scanner instance in a utility class, but that may be something you can only do with a bit of experience. Look at this link.
If you get problems with nextLine() after nextAnythingElse() be sure to ask for help here.
posted 1 year ago
You can identify the largest and the smallest of ten numbers without having to store them in any sort of data structure. But get the keyboard input working first.By the way: don't create lots of Scanner objects reading from System.in. You need one such Scanner which you use for the whole application if possible. That technique is not thread‑safe.
snakes are really good at eating slugs. And you wouldn't think it, but so are tiny ads: