![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA学习笔记
文章平均质量分 60
shirleyxs
这个作者很懒,什么都没留下…
展开
-
#A.C.E的java学习笔记
2.5 枚举类型//一个有趣的枚举类型首先,我们要声明一个枚举类型,java中我们使用enum来声明枚举类型enum 枚举名字{}然后我们需要在大括号{}中写入我们想要设置的枚举常量enum 枚举名字{spring,summer,autumn,winter}最后我们只需要再声明一个枚举变量来取出我们刚刚设置好的枚举常量即可:s=枚举名字.spring;//代表另s=spring常量一个简单的枚举类型就完成了。接下来我们来看看书上的实操例子:import java.util.S原创 2021-07-18 22:05:38 · 64 阅读 · 0 评论 -
A.C.E的JAVA学习笔记--5/14/21
1.3.3类型转换public class Tall {public static void main(String[] args) { // TODO Auto-generated method stub int foot; double inch; Scanner in=new Scanner(System.in); foot=in.nextInt(); inch=in.nextDouble(); System.out.println(10/3); System.out.printl原创 2021-05-14 18:57:25 · 119 阅读 · 0 评论 -
A.C.E的JAVA学习笔记 --## Basic Java Debugging(关于JAVA中常见的代码出错情况与解决方式)
A.C.E的学习笔记–## Basic Java Debugging(关于JAVA中常见的代码出错情况与解决方式)Step 1: “Syntax Error, Insert “;” to Complete BlockStatements”.This is the most basic of Syntax errors, it simply means you forgot a semicolon at the end of your statement. All declaration and ex转载 2021-05-14 16:37:18 · 223 阅读 · 0 评论