摘要:eclipse初下载所要进行的配置 1.配置编码:默认GBK改为utf-8,步骤:window->preferences->General->Workspace进行更改 2.查看JDK编译器版本window->preferences->java->Compiler可以查看 3.编辑器的内容辅助功能w
阅读全文
posted @ 2022-05-31 22:53
随笔 - 11, 文章 - 1, 评论 - 0, 阅读 -
1843
|
|
随笔分类 - Java
摘要:eclipse初下载所要进行的配置 1.配置编码:默认GBK改为utf-8,步骤:window->preferences->General->Workspace进行更改 2.查看JDK编译器版本window->preferences->java->Compiler可以查看 3.编辑器的内容辅助功能w
阅读全文
posted @ 2022-05-31 22:53
摘要:静态数组 int[] arr={1,2,3,4,5}; 动态数组 int[] arr=new int[5]; 数组增强for循环 arrays.for 代码补齐:for(int array:arrays) 遍历输出 System.out.println(array); 可用于遍历输出,但无法访问下标
阅读全文
posted @ 2022-03-24 11:43
摘要:当编译java程序中有中文时,使用javac编译会出现此错误 把javac 文件名.java改成javac -encoding UTF-8 文件名.java即可 原因:JDK是国际版的,我们操作系统默认的是GBK编码(汉字内码扩展规范),在编译时java把GBK编码格式转化为java默认的Unico
阅读全文
posted @ 2022-03-19 18:38
|
|