Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
用户输入一个JOptionPane.showInputDialog("enter month").
JOptionPane.showInputDialog("enter month").
结果应该只有 3 个字母"jan","feb"或"mar".
"jan"
"feb"
"mar"
使用inputString = inputString.substring(0, 3);,在哪里inputString输入月份。
inputString = inputString.substring(0, 3);
inputString