application1.java~2~
来自「提供了常用的JAVA技术的示例」· JAVA~2~ 代码 · 共 59 行
JAVA~2~
59 行
package numgame;import javax.swing.UIManager;import java.awt.*;import java.io.*;public class Application1 { //Main method public static void main(String[] args) throws IOException { final long num=18678902; int n=(int)(num%14); switch(n){ case 1: System.out.println("the person is A ."); break; case 2: System.out.println("the person is B ."); break; case 3: System.out.println("the person is C ."); break; case 4: System.out.println("the person is D ."); break; case 5: System.out.println("the person is E ."); break; case 6: System.out.println("the person is F ."); break; case 7: System.out.println("the person is G ."); break; case 8: System.out.println("the person is H ."); break; case 9: System.out.println("the person is G ."); break; case 10: System.out.println("the person is F ."); break; case 11: System.out.println("the person is E ."); break; case 12: System.out.println("the person is D ."); break; case 13: System.out.println("the person is C ."); break; case 14: System.out.println("the person is B ."); break; } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?