随笔分类 - 25天数据结构
依托 UC Berkeley 的CS61b 教学资源进行学习
目标;25 天内完成学习
摘要:Primitive Types vs Reference Types: the former stands for value, the latter stores the address e.g. int x = 10; In the diagram it looks like: x |__10
阅读全文
摘要:In the last session, we discovered a kind of data structure whose name is IntList. Below is its code: public class IntList{ public int first; pubic In
阅读全文
摘要:I am going to create an array which is similar to the list in python by using Java. It turns out that a very basic list is trivial to implement, as sh
阅读全文
摘要:In python,we have something like the list, say L[1,2,3]. We can also add the last digit to the list by doing so:L.append(i) However, in JAVA, we do no
阅读全文
摘要:Client Programs and Main Methods. A Java program without a main method cannot be run directly using the java command. However, its methods can still b
阅读全文
摘要:In the following study on data structures, i will use JAVA as the main coding language to learn this topic. Below is some basic introductions of JAVA,
阅读全文