Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
14Activity
P. 1
Tutorial Eclipse Java Beginner

Tutorial Eclipse Java Beginner

Ratings: (0)|Views: 630 |Likes:
Published by Arnaldo Jr
Tutorial para iniciantes na IDE eclipse
Tutorial para iniciantes na IDE eclipse

More info:

Published by: Arnaldo Jr on Sep 05, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/03/2013

pdf

text

original

 
Eclipse and Java for Total BeginnersTutorial Companion Document
Eclipse And Java For Total BeginnersCompanion Tutorial Document
 
By Mark Dexter 
 
Table of Contents
Introduction.........................................................................................................................................2Tutorial Target Audience.....................................................................................................................2Tutorial Objectives..............................................................................................................................2Why learn Java with Eclipse?.............................................................................................................3Topics Covered...................................................................................................................................3Tutorial Approach................................................................................................................................3Getting The Most From This Tutorial..................................................................................................3Sample Java Application – Personal Lending Library........................................................................4Downloading and Installing Eclipse ...................................................................................................4Playing the Lessons............................................................................................................................5Re-Sizing the Video........................................................................................................................5Closed Captions and Lesson Table of Contents............................................................................5Lesson Outlines..................................................................................................................................6Lesson 1 – Create Your First Java Class.......................................................................................6Lesson 2 – Add Methods To Class.................................................................................................6Lesson 3 – Use Eclipse Scrapbook................................................................................................6Lesson 4 – JUnit Testing in Eclipse, Part 1....................................................................................6Lesson 5 – JUnit Testing Continued...............................................................................................7Lesson 6 – Using Test-First Development in Eclipse.....................................................................7Lesson 7 – Create Book Class.......................................................................................................7Lesson 8 – Add Person to Book Class...........................................................................................7Lesson 9 – MyLibrary Class and ArrayList.....................................................................................7Lesson 10 – Start on MyLibrary Class...........................................................................................7Lesson 11 – Create first methods in MyLibrary class.....................................................................8Lesson 12 – Create checkOut, checkIn Methods..........................................................................8Lesson 13 – Continue checkOut Method.......................................................................................8Lesson 14 – Finish checkOut Method............................................................................................8Lesson 15 – Finish MyLibrary Methods..........................................................................................8Lesson 16 – Create main Method and JAR File.............................................................................9Alphabetical Index by Lesson.............................................................................................................9Glossary of Terms.............................................................................................................................12
Copyright © 2007 Mark Dexter. Licensed under the Educational Community License version 1.0. Page 1 of 45
 
Eclipse and Java for Total BeginnersTutorial Companion DocumentAdditional Resources........................................................................................................................14Eclipse Websites..........................................................................................................................15Java Websites...............................................................................................................................15Java Books...................................................................................................................................15Code Snapshots...............................................................................................................................15Lesson 1 – Person class (fields and constructor)........................................................................15Lesson 2 – Person class (with get and set methods)...................................................................16Lesson 3 (scrapbook snapshots)..................................................................................................17Lesson 5 – PersonTest class........................................................................................................17Lesson 6 – Added toString() Method to Person class..................................................................18Lesson 7 – TestBook and Book Classes......................................................................................20Lesson 8 – Add Person to Book Class.........................................................................................21Lesson 9 – MyLibrary Class and ArrayList...................................................................................23Lesson 10 – Start on MyLibrary Class.........................................................................................23Lesson 11 – Create first methods in MyLibrary class...................................................................24Lesson 12 – Create checkOut, checkIn Methods........................................................................27Lesson 13 – Continue checkOut Method.....................................................................................31Lesson 14 – Finish checkOut Method..........................................................................................33Lesson 15 – Finish MyLibrary Methods........................................................................................35Lesson 16 – Create main Method and JAR File..........................................................................41
Introduction
This document is designed to accompany the “Eclipse And Java For Total Beginners” video tutorial,which is available athttp://eclipsetutorial.sourceforge.net/. 
Tutorial Target Audience
This tutorial is targeted for people who are new to Eclipse and to Java. It is designed to work either for those with prior programming experience in other languages or for those without prior experience.
Tutorial Objectives
The objectives of this tutorial are as follows:
Demonstrate the basics of using Eclipse for writing Java programs
Demonstrate how to use Eclipse for agile software development
Demonstrate how to use existing Java learning resources (tutorials, examples, books) withinEclipse
Create a foundation for continuing to learn Java and EclipseNote that Java and Eclipse are both large subject areas that cannot possibly be mastered in a shortperiod of time. This tutorial will help get you started and give you some of the skills needed to learnon your own.
Copyright © 2007 Mark Dexter. Licensed under the Educational Community License version 1.0. Page 2 of 45
 
Eclipse and Java for Total BeginnersTutorial Companion Document
Why learn Java with Eclipse?
There are many ways to learn how to program in Java. The author believes that there areadvantages to learning Java using the Eclipse integrated development environment (IDE). Some of these are listed below:
Eclipse provides a number of aids that make writing Java code much quicker and easier thanusing a text editor. This means that you can spend more time learning Java, and less timetyping and looking up documentation.
The Eclipse debugger and scrapbook allow you to look inside the execution of the Java code.This allows you to “see” objects and to understand how Java is working behind the scenes
Eclipse provides full support for agile software development practices such as test-drivendevelopment and refactoring. This allows you to learn these practices as you learn Java.
If you plan to do software development in Java, you’ll need to learn Eclipse or some other IDE.So learning Eclipse from the start will save you time and effort.The chief concern with learning Java with an IDE is that learning the IDE itself will be difficult and willdistract you from learning Java. It is hoped that this tutorial will make learning the basics of Eclipserelatively painless so you can focus on learning Java.
Topics Covered
This tutorial will cover the following topics:
Basics of Eclipse for Java development
Basics of Java and object-oriented programming (OOP)
Test-driven development (TDD) and unit testing in Eclipse
Tutorial Approach
The tutorial is organized around the following activities.
Write a small sample Java application to track your personal lending library.
Use the “test-first” approach to develop most methods.
Write a “test drive” program and create an executable JAR file, and run the JAR file from thesystem console.Concepts are introduced as needed during the development of the sample applications.
Getting The Most From This Tutorial
This tutorial can be used as an in-depth demonstration of Java development in Eclipse. However, if you want to actually learn how to write Java programs in Eclipse, the following approach isrecommended:
Copyright © 2007 Mark Dexter. Licensed under the Educational Community License version 1.0. Page 3 of 45

Activity (14)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
ricardo_fff5977 liked this
adviful liked this
PUMMYBOSS liked this
Ameya Gharote liked this
Ameya Gharote liked this
Sai Goud liked this
'Mohnish Anand' liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->