hasnextint

  • hasnextint详解

    一、hasnextint是什么 hasnextint是Scanner类中的一个方法,用于判断下一个读入的数据是否为int类型。如果是,则返回true;如果不是,则返回false。 …

    编程 2024-10-10