Download our latest
Android and iPhone apps ...
×
Java 1.7 Programming


Name:
Company:
Email:
Telephone:
Training type:
No of delegates:
Additional Information
 

At a glance ...
Pages
663
Exercises
24
Sections
42
Public
On-Site
Level
1
Days
5

Course Name: Java 1.7 Programming

Duration:
Minimum skill level required:
On-Site course:
Public course:
Sections:
No of exercises:
No of pages in the manual:
Pre-Requisite course(s):
Suggested further course(s):
Price guide:
5 days
1 (1 - Beginner, 2 - Experienced 3 - Advanced)
Yes
No
42
24
663
None
Java 1.7 Swing
Contact us for the latest pricing

Synopsis for course

Most IT departments need people who have some Programming background, Java is the ideal programming language to learn programming techniques not only does it incorporate standard methods such as variable control and looping but also resembles other programming languages such as C, C++ and even Oracle PLSQL

This course is designed for delegates wishing to develop a Java knowledge, from very basic concepts right up to producing batch applications which can be used in a Commercial environment.

This Java Programming training course is an extended version of Module One of the Fundamentals of Java course which is held as both on-site and public courses.

This version is currently only offered as an on-site training course and is designed for Companies who wish to introduce new members of staff to Java or to re-train existing staff in the new programming styles of Oops (Object Orientated Programming).

Following this course, it is recommended that delegates later attend the Java Swing 1.7 programming training course.

The course comes with a comprehensive manual, and the solutions for every exercise.

This is a practical course based on commercial requirements.

Exercise highlights

Basic output onto the command line
Converting and Casting Datatypes
Handling Gregorian Dates
Exception Handling

Course Contents

Section
Section Name
Page


One
Introduction to Java
2

 
- Usage of Java
3

 
- Structure of Java
4

 
- Flexibility of Java Programming
5

Two
Running Java in Dos
6

 
- Using the DOS Window
7

 
- DOS Operating System Commands
8

 
- Compiling and Executing Java Programs in DOS
10

 
- Using JAVAC to Compile Java Programs
11

 
- Exercise One
16

Three
Getting the Java Developer Kit (JDK)
18

 
- Downloading the JDK
19

 
- Installing the Java Developer Kit
22

Four
First Steps to Programming in Java
30

 
- Introduction to Java Programming
31

 
- Anatomy of Java Programming
35

 
- Using System.out.println in Java
36

 
- Passing Arguments in a Java Program
37

 
- Packages in Java Programming
38

 
- Naming Java modules
39

 
- Commenting in Java Programs
40

 
- Case Sensitivity in Java
41

 
- Syntax Rules in Java 1.7 Programming
42

 
- Exercise Two
43

Five
Java Strings
44

 
- Introduction
45

 
- Using Escape Characters
46

 
- Concatenating of Strings
49

 
- Using Methods with Strings
51

 
- Methods with Parameters / Arguments
52

 
- Selecting Substrings
53

 
- Finding the Index
54

 
- Finding the Index of a Substring
56

 
- Finding the Length of a String
60

 
- Capitalizing Strings Example
61

 
- Exercise Three
62

Six
Using Numbers in Java
65

 
- Performing Calculations
66

 
- Calculations and Concatenation
68

 
- Calculations and Precedence
69

 
- Using Concatenation with Numbers
70

 
- Using Methods with Numbers
72

 
- Exercise Four
75

Seven
Creating Variables in Java
76

 
- Introduction
77

 
- Naming Conventions
79

 
- Using Final to create a Constant value
83

 
- Primitive Datatypes
85

 
- byte Datatype
86

 
- long Datatype
87

 
- short Datatype
89

 
- int Datatype
90

 
- float Datatype
91

 
- double Datatype
92

 
- Compatibility between Primitive Datatypes
93

 
- Casting between Primitive Datatypes
94

 
- Casting and Converting Values
95

 
- byte Casting
96

 
- double Casting
97

 
- int Casting
98

 
- long Datatype
99

 
- float Casting
100

 
- short Casting
101

 
- char Datatype
102

 
- char Casting
103

 
- String Casting
104

 
- boolean Datatype
105

 
- Manipulating Variables
106

 
- Incrementing Variables with Postfix
110

 
- Postfix versus Prefix
111

 
- Number Formatting in Java
112

 
- Exercise Five
120

Eight
Wrapper Classes in Java
124

 
- Introduction
125

 
- Using MAX_VALUE
127

 
- Declaring Wrappers
128

 
- Populating Wrapper Classes
129

 
- Postfix Wrappers
133

 
- Number Formatting
134

 
- Converting Numeric Wrappers
135

 
- Converting Numeric Wrappers to String
136

 
- String to Numeric Datatypes (decode)
137

 
- String to Numeric Datatypes (parseInt)
138

 
- String to Numeric Datatypes (valueOf)
139

 
- Numeric Datatypes to String using valueOf()
140

 
- Character Class Methods in Java
141

 
- Converting String to char
142

 
- Exercise Six
143

Nine
Conditional Tests
145

 
- Making Decisions in Java
146

 
- Testing Booleans in Java
153

 
- Else Conditions in Java
155

 
- Else if Conditions in Java
156

 
- Nesting Conditions in Java
157

 
- Ternary if-else Operator
158

 
- Case Switch Conditions
160

 
- Using Break in Java Switches
162

 
- Using Java Switches with Strings (v7+)
164

 
- Using Java Switches with Bytes (v7+)
165

 
- Using Java Switches with Shorts (v7+)
166

 
- Using Java Switches with Wrappers (v7+)
167

 
- Compound Conditions in Java
168

 
- AND Conditions in Java (&&)
169

 
- OR Conditions in Java (||)
170

 
- XOR Conditions in Java (^)
171

 
- Short-circuiting Conditions in Java
172

 
- Exercise Seven
174

Ten
Conditional Tests with Wrappers
178

 
- Class Conditions
179

 
- Class Methods
181

 
- String Class Methods
182

 
- Character Class Methods
184

 
- Boolean Class Methods
186

 
- Exercise Eight
187

Eleven
Arrays
189

 
- Array Variables in Java
190

 
- Declaring Arrays in Java ([])
191

 
- Using copyOf to extend an array
195

 
- Declaring Empty Arrays in Java ([])
196

 
- Populating Arrays in Java
197

 
- Multi-Dimensional Arrays
198

 
- Defining Multi-Dimensional Arrays
199

 
- Populating Multi-Dimensional Arrays
201

 
- Cloning Arrays
203

 
- Converting Char Arrays to Strings
204

 
- Converting Strings to Arrays
205

 
- Sorting Arrays
206

 
- Exercise Nine
207

Twelve
Object
210

 
- The Object Superclass in Java
211

 
- Creating and utilising Objects
212

Thirteen
Looping
213

 
- Looping Methods in Java
214

 
- While Looping in Java
215

 
- Do While Looping in Java
217

 
- For Looping in Java
218

 
- For-Each Looping in Java
219

 
- Nested Looping in Java
220

 
- Branching in Looping in Java
221

 
- Continue Looping in Java
222

 
- Break Looping in Java
224

 
- Labelling Looping in Java
225

 
- The Break Statement in Java
226

 
- Breaking with a Loop Label
227

 
- Continuing with a Loop Label
228

Fourteen
Passing Arguments
229

 
- Sending Arguments to Methods
230

 
- Using length with arguments
232

 
- Exercise Ten
234

Fifteen
Multiple Methods
239

 
- Introduction
240

 
- Multiple Methods
241

 
- Overloading
246

 
- Returning Values in Java
249

 
- Returning Wrappers in Java
256

 
- Returning Arrays in Java
257

 
- Using varargs in Java
258

 
- Definition of scope
259

 
- Exercise Eleven
262

Sixteen
Multiple Classes
264

 
- Multiple Classes / Single File
265

 
- Multiple Classes
267

 
- Accessing Variables
268

 
- Nested Classes
269

 
- Finalising Class Variables
273

 
- Accessing from other Classes
274

 
- Exercise Twelve
276

Seventeen
Packages in Java
280

 
- Introduction
281

 
- Definition of a Package
282

 
- Multi-Level Packages
283

 
- Accessing and Importing Packages
285

 
- Exercise Thirteen
289

Eighteen
Regular Expressions in Java
290

 
- Introduction
291

 
- Line Anchors
294

 
- Case Sensitivity
295

 
- Using the Dot (Any Character)
296

 
- Counting Characters {Intervals}
298

 
- Character Range Lists
301

 
- Excluding Character Lists
305

 
- Metacharacters in Java
306

 
- Or Patterns (Alternatives)
308

 
- Using the Question Mark (Optional)
309

 
- Using the Plus sign (Mandatory)
311

 
- Using the Star sign (Optional)
312

 
- Negative Lookahead
313

 
- POSIX in Java
314

 
- Using String methods for Regex - matches()
316

 
- Using String methods for Regex - replaceAll()
317

 
- Using String methods for Regex - replaceFirst()
318

 
- Using String methods for Regex - split()
319

 
- Exercise Fourteen
321

Nineteen
Vectors
326

 
- Using Vectors in Java
327

 
- Populating Vectors using add() method
328

 
- Populating Vectors using addAll() method
329

 
- Counting number of values in a Vector
331

 
- Accessing values in a Vector
332

 
- Using Loops with Vectors
333

 
- Changing existing values in a Vector
334

 
- Sorting values in a Vector
335

 
- Miscellaneous methods to use with Vectors
336

 
- Using Vectors in Java
337

Twenty
Hashtables
338

 
- Creating Hashtables
339

 
- Populating Hashtables
340

 
- Accessing values in a Hashtable
341

 
- Accessing values in Hashtables with For-Each
342

 
- Some useful methods for Hashtables
343

Twenty One
Enumeration
344

 
- Introduction
345

 
- Using Enumeration
346

Twenty Two
Concepts of OOPS
348

 
- Introduction
349

 
- Classes and Instances (Instantiation)
350

 
- Constructor
351

 
- Polymorphism
354

 
- Inheritance
356

 
- IS-A
358

 
- Overriding and Overloading
359

 
- Extends
360

 
- Interfaces and Implementation
361

 
- Abstraction
362

 
- Encapsulation
363

 
- Packages
364

Twenty Three
Interfaces
365

 
- Introduction
366

 
- Implementing Interfaces
367

 
- The Hierarchy of Interfaces Using Extends
370

 
- The purpose of @Override
371

Twenty Four
Access Methods in Java
373

 
- Class Access Levels in Java
374

 
- Method Access Levels in Java
375

 
- Variable Access Levels in Java
378

Twenty Five
Using OOPS in Java
379

 
- Introduction
380

 
- Instances and Constructors
381

 
- The 'This' keyword
384

 
- Overriding and Extending Classes
391

 
- Using the Super keyword
399

 
- Exercise Fifteen
400

Twenty Six
Exception Handling in Java
406

 
- Error Handling in Java
407

 
- Trying Exceptions in Java
408

 
- Catching Exceptions in Java
409

 
- Throw Exceptions in Java
416

 
- Using Finally in Java
419

 
- Throws and Modular Programming
421

 
- Exercise Sixteen
432

Twenty Seven
Using Java Swing
433

 
- Introduction
434

 
- Using Dialog Boxes
435

 
- Using Message Dialogs
437

 
- Using Confirm Dialogs
442

 
- Using Input Dialogs
445

 
- Using Icons in Java
447

 
- Using ImageIcon in Java
448

 
- Using Option Dialogs
449

 
- Making a Beep in Java
455

 
- Exercise Seventeen
456

Twenty Eight
Enums
459

 
- Introduction
460

 
- Declaring a basic Enum
461

 
- Testing Enums
464

 
- Using the values() method with Enums
465

 
- Creating methods in Enums
466

 
- Exercise Eighteen
473

Twenty Nine
HashMaps
474

 
- Creating HashMaps
475

 
- Populating HashMaps
476

 
- Populating HashMaps using putAll()
477

 
- Accessing values in HashMaps
478

 
- Accessing values in HashMaps with For-Each
479

 
- Accessing keys in HashMaps with For-Each
480

 
- Some useful methods for HashMaps
481

Thirty
Arraylist
482

 
- Creating ArrayLists
483

 
- Populating an ArrayList
484

 
- Populating an ArrayList with addAll
486

 
- Counting number of values in an ArrayList
487

 
- Accessing values in an ArrayList
488

 
- Using Loops with ArrayLists
489

 
- Changing existing values in an ArrayList
490

 
- Sorting values in an ArrayList
491

Thirty One
Iterator
492

 
- Introduction
493

 
- Using Iterator
494

 
- Using Iterator with remove()
495

 
- Using ListIterator
496

 
- Exercise Nineteen
497

Thirty Two
Dates in Java
501

 
- Using Dates in Java
502

 
- Date and Time Variables
504

 
- currentTimeMillis()
506

 
- DateFormat in Java
507

 
- Placing Strings into Dates
510

 
- SimpleDateFormat Method
512

 
- getTimeInstance Method in Java
515

 
- SimpleDateFormat Method for Time in Java
518

Thirty Three
Calendars in Java
520

 
- Calendar Class in Java
521

 
- Leniency in Calendars
526

 
- Populating Calendars
527

 
- Populating Calendars using set()
529

 
- Changing Calendars using add()
530

 
- Gregorian Calendar in Java
532

 
- Exercise Twenty
536

Thirty Four
System Properties
539

 
- Using System Properties in Java
540

 
- List of System Properties in Java
541

 
- System.getProperty
542

Thirty Five
File Handling in Java
543

 
- File Handling in Java
544

 
- Reading from Files in Java
546

 
- Using the Buffered Reader
550

 
- Writing to Files in Java
552

 
- Using the BufferedWriter in Java
554

 
- Exercise Twenty One
555

Thirty Six
Reading XML Files
557

 
- Introduction
558

 
- Example of an XML file
559

 
- Getting the Elements of the File
560

Thirty Seven
Reading and Writing Zip Files in Java
566

 
- Introduction
567

 
- Counting Files in a Zip File
568

 
- Naming Files in a Zip File
569

 
- Reading Contents of a Zip using Enumeration
570

 
- Reading Contents of a Zip using a ZipEntry
572

 
- Writing to a Zip File
574

Thirty Eight
Accessing MySQL Databases in Java
577

 
- Introduction
578

 
- Running Java and MySQL on the Command Line
579

 
- Counting Records in MySQL
583

 
- Displaying Records in MySQL
586

 
- Using the 'get' method with the ResultSet
588

 
- Updating records in MySQL
589

 
- Deleting and Inserting records in MySQL
591

 
- Date Formats for MySQL
592

 
- Performing DDL in MySQL with Java
593

 
- Creating, Altering and Dropping MySQL Tables
594

 
- Exercise Twenty Two
596

Thirty Nine
Accessing Oracle Databases in Java
601

 
- Introduction
602

 
- Using Oracle
603

 
- Running Java and Oracle on the Command Line
604

 
- Counting Records in Oracle
607

 
- Displaying Records in Oracle
610

 
- Updating records in Oracle
612

 
- Deleting and Inserting records in Oracle
614

 
- Inserting / Updating Dates in Oracle
615

 
- Performing DDL in Oracle with Java
616

 
- Creating, Altering and Dropping Oracle Tables
617

 
- Exercise Twenty Three
619

Forty
Developer Defined Exceptions
624

Forty One
Creating JAR files
631

 
- Introduction
632

 
- Creating a simple Jar file
634

 
- Viewing the contents of a Jar file
635

 
- Extracting the contents of a Jar file
636

 
- Incorporating a Jar file
637

Forty Two
Using Javadoc
639

 
- Documenting Java Programs
640

 
- Using Javadoc
641

 
- Exercise Twenty Three
659