📄 application1.java~2~
字号:
package ifelse;import javax.swing.UIManager;import java.awt.*;import java.io.*;public class Application1 { //Main method public static void main(String[] args) throws IOException{ InputStreamReader ir; BufferedReader in; ir=new InputStreamReader(System.in); in=new BufferedReader(ir); System.out.println("input x is :"); String s=in.readLine(); double x=Double.parseDouble(s); if (x==3.1415926) System.out.println("this number is π"); else if(x==2071828183) System.out.println("this number is e"); else System.out.println("this number is neither π"); try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) { e.printStackTrace(); } new Application1(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -