📄 int.java
字号:
package lolo.scans;/** A class to scan for integer numbers. * * @author <a href="http://www.inf.uos.de/bernd" target="_blank">Bernd Kühl</a> (<a href="mailto:bernd@informatik.uni-osnabrueck.de">bernd@informatik.uni-osnabrueck.de</a>) */public class Int extends SetMN { /** Constructs a recognizer which scans one ore more digits as symbol. */ public Int() { this(Integer.MAX_VALUE); } /** Constructs a recognizer which scans one or up to <tt>maxDigits</tt> digits as symbol. * * @param maxDigits the maximal number if digits per symbol. */ public Int(int maxDigits) { super("0123456789", true, 1, maxDigits); } /** Returns a string representation of the object. * * @return a string representation of the object. */ public String toString() { return getClass().getName()+"[maxDigits "+n+"]"; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -