getencoding.java

来自「程序练习中包括书中实例程序代码和练习中要用到的代码,是压缩文件」· Java 代码 · 共 16 行

JAVA
16
字号
package examples.i18n;

/** Class to demonstrate how to determine the default
  * file encoding for a platform
  */
public class GetEncoding {
   /** Test method for the class
     * @param args not used
     */
   public static void main( String[] args ) {
      String fe
         = System.getProperty( "file.encoding" );
      System.out.println( fe );
   }
}

⌨️ 快捷键说明

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