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

📄 main.java

📁 java的经典例子
💻 JAVA
字号:
import java.text.NumberFormat;class Main {    public static void main(String args[]) {        NumberFormat nf = NumberFormat.getInstance();        // create string character iterator        nf.setMinimumFractionDigits(5);        System.out.println(nf.getMinimumFractionDigits());   // prints '5'        // create a clone         NumberFormat nfCopy = (NumberFormat)nf.clone();         System.out.println(nfCopy.getMinimumFractionDigits());   // prints '5'        if(nf.equals(nfCopy)) {            System.out.println("Copy is equal to original");        } else {            System.out.println("Copy is not equal to original");        }        // compute hashcode        int hc = nf.hashCode();        System.out.println("Hash code is: " + hc);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -