𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Java Phrasebook

✍ Scribed by Fisher, Timothy


Publisher
Sams Publishing
Year
2006
Tongue
English
Leaves
225
Series
Developer's Library
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Essential Code and CommandsJava Phrasebookgives you the code phrases you need to quickly and effectively complete your programming projects in Java. Concise and Accessible Easy to carry and easy to use--lets you ditch all those bulky books for one portable guide Flexible and Functional Packed with more than 100 customizable code snippets--so you can readily code functional Java in just about any situation Timothy Fisher has been working professionally in the Java software development field since 1997 and is currently a consultant for the Compuware Corporation in Detroit, Michigan. He enjoys writing about technology and has been a contributor to Java Developer's Journal and XML Journal. Tim is also passionate about education and the use of advanced Internet technologies for education. Programming / Java

✦ Table of Contents


Cover......Page 1
Contents......Page 4
Introduction......Page 14
1 The Basics......Page 18
Compiling a Java Program......Page 20
Setting the Classpath......Page 21
2 Interacting with the Environment......Page 24
Getting Environment Variables......Page 25
Setting and Getting System Properties......Page 26
Parsing Command-Line Arguments......Page 27
3 Manipulating Strings......Page 30
Comparing Strings......Page 31
Searching For and Retrieving Substrings......Page 34
Processing a String One Character at a Time......Page 35
Reversing a String by Word......Page 36
Trimming Spaces from the Beginning or End of a String......Page 38
Parsing a Comma-Separated String......Page 39
4 Working with Data Structures......Page 42
Resizing an Array......Page 43
Iterating Over a Collection......Page 44
Creating a Mapped Collection......Page 45
Sorting a Collection......Page 47
Finding an Object in a Collection......Page 49
Converting a Collection to an Array......Page 51
5 Dates and Times......Page 52
Converting Between Date and Calendar Objects......Page 53
Printing Date/Time in a Given Format......Page 54
Parsing Strings into Dates......Page 57
Adding to or Subtracting from a Date or Calendar......Page 58
Calculating the Difference Between Two Dates......Page 59
Comparing Dates......Page 60
Finding the Day of Week/Month/Year or Week Number......Page 61
Calculating Elapsed Time......Page 62
6 Pattern Matching with Regular Expressions......Page 64
Regular Expressions in Java......Page 65
Finding Matching Text Using a Regular Expression......Page 67
Replacing Matched Text......Page 69
Finding All Occurrences of a Pattern......Page 71
Printing Lines Containing a Pattern......Page 72
Matching Newlines in Text......Page 73
7 Numbers......Page 76
Checking Whether a String Is a Valid Number......Page 77
Comparing Floating Point Numbers......Page 78
Rounding Floating Point Numbers......Page 79
Formatting Numbers......Page 80
Formatting Currencies......Page 82
Generating Random Numbers......Page 83
Calculating Trigonometric Functions......Page 84
Calculating a Logarithm......Page 85
8 Input and Output......Page 86
Writing to Standard Output......Page 87
Formatting Output......Page 88
Opening a File by Name......Page 93
Reading Binary Data......Page 94
Seeking in a File......Page 95
Reading a JAR or Zip Archive......Page 96
Creating a Zip Archive......Page 97
9 Working with Directories and Files......Page 100
Creating a File......Page 101
Renaming a File or Directory......Page 102
Deleting a File or Directory......Page 103
Getting the Size of a File......Page 104
Determining if a File or Directory Exists......Page 105
Moving a File or Directory......Page 106
Getting an Absolute Filename Path from a Relative Filename Path......Page 107
Determining if a Filename Path is a File or Directory......Page 108
Listing a Directory......Page 109
Creating a New Directory......Page 112
10 Network Clients......Page 114
Finding IP Addresses and Domain Names......Page 115
Handling Network Errors......Page 116
Reading Text......Page 118
Reading Binary Data......Page 119
Writing Binary Data......Page 121
Reading Serialized Data......Page 122
Writing Serialized Data......Page 123
Reading a Web Page via HTTP......Page 124
Creating a Server and Accepting a Request......Page 128
Returning a Response......Page 130
Returning an Object......Page 131
Handling Multiple Clients......Page 132
Serving HTTP Content......Page 135
12 Sending and Receiving Email......Page 138
Sending Email......Page 139
Sending MIME Email......Page 141
Reading Email......Page 144
13 Database Access......Page 148
Connecting to a Database via JDBC......Page 149
Sending a Query via JDBC......Page 151
Using a Prepared Statement......Page 152
Retrieving Results of a Query......Page 154
Using a Stored Procedure......Page 155
14 Using XML......Page 158
Parsing XML with SAX......Page 160
Parsing XML with DOM......Page 162
Using a DTD to Verify an XML Document......Page 164
Creating an XML Document with DOM......Page 166
Transforming XML with XSLT......Page 168
15 Using Threads......Page 170
Starting a Thread......Page 171
Stopping a Thread......Page 173
Waiting For a Thread to Complete......Page 174
Synchronizing Threads......Page 175
Pausing a Thread......Page 179
Listing All Threads......Page 180
16 Dynamic Programming Through Reflection......Page 184
Getting a Class Object......Page 185
Getting a Class Name......Page 186
Discovering Class Modifiers......Page 187
Finding Superclasses......Page 188
Determining the Interfaces Implemented by a Class......Page 189
Discovering Class Fields......Page 190
Discovering Class Constructors......Page 191
Discovering Method Information......Page 193
Getting Field Values......Page 195
Setting Field Values......Page 196
Invoking Methods......Page 197
Loading and Instantiating a Class Dynamically......Page 199
17 Packaging and Documenting Classes......Page 202
Creating a Package......Page 203
Documenting Classes with JavaDoc......Page 205
Archiving Classes with Jar......Page 207
Running a Program from a JAR File......Page 209
C......Page 210
D......Page 212
F......Page 213
G......Page 214
J-K......Page 215
M......Page 216
N......Page 218
Q-R......Page 219
S......Page 221
U-V......Page 223
Y-Z......Page 224

✦ Subjects


Computer Science;Programming;Technical


πŸ“œ SIMILAR VOLUMES


Java Phrasebook
✍ Timothy R. Fisher πŸ“‚ Library πŸ“… 2006 πŸ› Sams 🌐 English

Essential Code and Commands Β  Java Phrasebook gives you the code phrases you need to quickly and effectively complete your programming projects in Java. Β  Concise and Accessible Easy to carry and easy to useβ€”lets you ditch all those bulky books for one portable guide Β  Flexible and Functional

Java Phrasebook
✍ Timothy R. Fisher πŸ“‚ Library πŸ“… 2006 πŸ› SAMS Publishing 🌐 English

Java Phrasebook gives you the code phrases you need to quickly and effectively complete your programming projects in Java. Timothy Fisher has been working professionally in the Java software development field since 1997 and is currently a consultant for the Compuware Corporation in Detroit, Michiga

Java Phrasebook (Developer's Library)
✍ Timothy R. Fisher πŸ“‚ Library πŸ“… 2006 🌐 English

Essential Code and Commands Β  Java Phrasebook gives you the code phrases you need to quickly and effectively complete your programming projects in Java. Β  Concise and Accessible Easy to carry and easy to use–lets you ditch all those bulky books for one portable guide Β  Flexible and Functional

Javaβ„’ Phrasebook: Essential Code and Com
✍ Timothy R. Fisher πŸ“‚ Library πŸ“… 2006 πŸ› Sams 🌐 English

Java Phrasebook gives you the code phrases you need to quickly and effectively complete your programming projects in Java.

The Rough Guide to Portuguese Dictionary
✍ Lexus, Rough Guides πŸ“‚ Library πŸ“… 2006 πŸ› Rough Guides 🌐 English, Portuguese

<span>The Rough Guide phrasebook will have you speaking Portuguese as soon as you arrive. This revised third edition includes 16-pages of additional scenario material, from asking for directions and hiring a car to ordering a beer and reserving a hotel room. Recorded by native Portuguese speakers, t