Murach's Beginning Java 2, SDK 1.4

This chapter shows how to work with arrays and vectors. In addition, it shows some advanced skills for working with strings, which can be thought of as arrays of characters.

Chapter 9 How to work with arrays, strings, and vectors
How to work with arrays 266
How to create an array 266
How to assign values to the elements of an array 268
Code examples that work with arrays 270
How to work with two-dimensional arrays 272
How to create a two-dimensional array 272
Code examples that work with two-dimensional arrays 274
More skills for working with arrays 276
The methods of the Arrays class 276
Code examples that work with the Arrays class 278
How to implement the Comparable interface 280
How to reference an array 282
How to copy an array 282
How to work with the String class 284
Constructors of the String class 284
Code examples that create strings 284
Methods of the String class 286
Code examples that work with strings 288
How to work with the StringBuffer class 290
Constructors and methods of the StringBuffer class 290
Code examples that work with the StringBuffer class 292
How to work with the Vector class 294
Constructors and methods of the Vector class 294
Code examples that work with the Vector class 296
The Invoice application 298
The user interface 298
The code 298
Perspective 302
t




Murach's Beginning Java 2

Learn more about this book

Add this book to your cart


See the Java 1.5 edition