Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
eScience : comp6700 lab1

COMP6700: Orientation Laboratory

In this orientation laboratory for the eScience course, you willlearn how to logon to the system. You will then type in and play with someof the simple example Java code from lectures.

Using TextPad and the Cygwin shell window

Find the Cygwin window and double-click on it. Look at the topdirectory using ls -l. Make a new directory of your ownusing mkdir lab1 and move into it using cd lab1.

Now fire up TextPad and open a new file in the samedirectory. (Remember to use your middle mouse button to select fromthe menu. You may have to double click.) Call this fileFirstSample.java.

Now copy out the FirstSample.java program from yournotes. Compile it and run it. Think about the syntax. Make somedeliberate mistakes (such as leaving out semi-colons) and get the hangof the error messages.

Now modify the program (maybe renaming it to FirstSample1) to useprint rather than println. Fool with it until you get decent lookingoutput.

Do not rush this exercise. Spend as much time as you need to feelconfident with the editor and the Java system. Try out some of theother simple shell commands that we covered in lectures. (Rememberman for help on shell commands)

If you have time, trywriting more simple programs which actually perform calculations.


/
/
CRICOS Provider Code - 00120C 7/7/2003 Main contact : Dr Henry Gardner
Tel : 02 6125 8181
Mail :