CSc2010 Lab Fall 2015 Bing Li. Contact Name : Bing Li Email :...

9
CSc2010 Lab Fall 2015 Bing Li

Transcript of CSc2010 Lab Fall 2015 Bing Li. Contact Name : Bing Li Email :...

Page 1: CSc2010 Lab Fall 2015 Bing Li. Contact  Name : Bing Li  Email : bli6@student.gsu.edubli6@student.gsu.edu  Website : cs.gsu.edu/~bli6  Office : Suntrust.

CSc2010 LabFall 2015Bing Li

Page 2: CSc2010 Lab Fall 2015 Bing Li. Contact  Name : Bing Li  Email : bli6@student.gsu.edubli6@student.gsu.edu  Website : cs.gsu.edu/~bli6  Office : Suntrust.

Contact

Name : Bing Li

Email : [email protected]

Website : cs.gsu.edu/~bli6

Office : Suntrust Building , room 649

Office Hour : Tuesday 2:00pm. To 4:00pm. Langdale Hall #976

Page 3: CSc2010 Lab Fall 2015 Bing Li. Contact  Name : Bing Li  Email : bli6@student.gsu.edubli6@student.gsu.edu  Website : cs.gsu.edu/~bli6  Office : Suntrust.

Lab Section Requirement

Laptop (Windows/Mac/Linux)

Java JDK and Eclipse

Attendance

Sign in every time

Assignment

Send all .java files to [email protected] by the end of class

Grading

Attendance + Assignment

No attendance = 0

Page 4: CSc2010 Lab Fall 2015 Bing Li. Contact  Name : Bing Li  Email : bli6@student.gsu.edubli6@student.gsu.edu  Website : cs.gsu.edu/~bli6  Office : Suntrust.

Java JDK and Eclipse Installation

Download Java JDK

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Select “Accept License Agreement”

Windows users : download “jdk-8u60-windows-x64.exe”

If you use 32bit version Windows, please download “jdk-8u60-windows-i586.exe”

Mac users : download “dk-8u60-macosx-x64.dmg”

Linux users : talk to me

Install Java JDK

Double click it

Page 5: CSc2010 Lab Fall 2015 Bing Li. Contact  Name : Bing Li  Email : bli6@student.gsu.edubli6@student.gsu.edu  Website : cs.gsu.edu/~bli6  Office : Suntrust.

Java JDK and Eclipse Installation

Download Eclipse

http://www.eclipse.org/downloads/

Download “Eclipse IDE for Java Developers”

Page 6: CSc2010 Lab Fall 2015 Bing Li. Contact  Name : Bing Li  Email : bli6@student.gsu.edubli6@student.gsu.edu  Website : cs.gsu.edu/~bli6  Office : Suntrust.

Hello World

Open Eclipse

If a prompt window pops up and asks your workspace, choose one for eclipse and remember the folder location.

File > New > Java Project

Project Name : hello

Click Finish button

Right click “hello” > New > Class

Remove package name

Name : Hello

Click Finish Button

Page 7: CSc2010 Lab Fall 2015 Bing Li. Contact  Name : Bing Li  Email : bli6@student.gsu.edubli6@student.gsu.edu  Website : cs.gsu.edu/~bli6  Office : Suntrust.

Hello World

Write exactly the same code in your Hello Class.

Page 8: CSc2010 Lab Fall 2015 Bing Li. Contact  Name : Bing Li  Email : bli6@student.gsu.edubli6@student.gsu.edu  Website : cs.gsu.edu/~bli6  Office : Suntrust.

Hello World

Execute your program by click run button.

You will see the result like

Page 9: CSc2010 Lab Fall 2015 Bing Li. Contact  Name : Bing Li  Email : bli6@student.gsu.edubli6@student.gsu.edu  Website : cs.gsu.edu/~bli6  Office : Suntrust.

Submission

Send you Hello.java file to [email protected]

You can find Hello.java file in your workspace folder.