![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
weixin_44053979
这个作者很懒,什么都没留下…
展开
-
CS61b class 3
3.2 Primitive TypesThe golden rule of equals(GRoE)y = x copies all the bits from x into yint x = 5;y = x;x = 2;System.out.println("x is :"+x);System.out.println("y is :"+y);输出 x = 2 y = 5。...原创 2020-04-03 19:42:54 · 218 阅读 · 0 评论 -
UCB CS61b——Introduction
Hello worldpackage hello_pkg;public class hello_world { public static void main(String[] args){ System.out.println("Hello world Phoebe"); }}Simple looppackage hello_pkg;public...原创 2019-09-24 16:31:59 · 521 阅读 · 0 评论 -
UCB CS61b——Class 1
编译在terminal中,运行Java程序,首先dir(相当于Linux中的ls)和cd到对应文件夹javac xxx.java编译Java程序C:\Users\phoeb\IdeaProjects\beginner\src\hello_pkg>javac hello_world.java用window中的type命令查看编译出的class文件(不同于Linux中的cat)C:\...原创 2019-09-24 17:29:48 · 392 阅读 · 0 评论 -
CS61b class2
public static void main/**package hello_pkg;*/public class sumargs { public static void main(String[] args){ int N = args.length; int sum = 0; int i = 0; while(i...原创 2019-10-07 22:25:04 · 206 阅读 · 0 评论