登录
  • #公开课
  • #入门|算法|数据结构

Berkeley CS 61B Data Structures(in Java) Lab1 讨论帖

jaly50
29069
220
作业入口:http://www.cs.berkeley.edu/~jrs/61b/lab/lab1/

看完第二课视频Using objects就可以做这次的作业。

第一次作业实在是没什么好说的,咱们没有TA给我们Check off,也没有Emacs可以用。我看了一下,咱们能做的只有把那个有错误的names.java改对。



作业要求:

1.load the program file Names.java

2. build a command line to run the Java compiler: javac -g Names.java

3. You will find that javac cannot compile the program. The code contains two syntax errors which you are quite likely to make when you will write programs.

(The second error won't rear its head until you fix the first one.)

4.Figure out what's wrong, correct the errors, save the file, and compile the code.

5. 可以编绎了以后,还有些Run-time Error, 把那些改对,运行成功了,就可以交差了。

[indent]
This homework assignment is meant to make sure you can write, compile, and runsimple Java programs. This is an individual assignment; you may not sharecode with other students. You will need to know how to compile and run Javaprograms, as described in Lab 1.


[/indent]
Lab贴不加分~~~只讨论!!!

课程不鼓励大家分享代码,作业成功运行,输出图如下:





相关链接:



【公开课讨论+加分总贴】:UC Berkeley CS 61B Data Structures(in Java)

【课程网站】:cs.berkeley.edu

【视频网站】:【】【Youku


【教材】:Head First Java 【中文版】【英文版

Data Structures and Algorithms in Java, 5th Edition. 【英文版



号外:程序中给出的测试数据有限,欢迎大家踊跃上传自己的测试数据!!!
220条回复
热度排序

发表回复