⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 application1.java~2~

📁 提供了常用的JAVA技术的示例
💻 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 + -