• Complain

Ian F. Darwin - Java Cookbook

Here you can read online Ian F. Darwin - Java Cookbook full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Sebastopol, CA, year: 2014, publisher: OReilly Media, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    Java Cookbook
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2014
  • City:
    Sebastopol, CA
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Java Cookbook: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Java Cookbook" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

From lambda expressions and JavaFX 8 to new support for network programming and mobile development, Java 8 brings a wealth of changes. This cookbook helps you get up to speed right away with hundreds of hands-on recipes across a broad range of Java topics. Youll learn useful techniques for everything from debugging and data structures to GUI development and functional programming.

Each recipe includes self-contained code solutions that you can freely use, along with a discussion of how and why they work. If you are familiar with Java basics, this cookbook will bolster your knowledge of the language in general and Java 8s main APIs in particular.

Recipes include:

  • Methods for compiling, running, and debugging
  • Manipulating, comparing, and rearranging text
  • Regular expressions for string- and pattern-matching
  • Handling numbers, dates, and times
  • Structuring data with collections, arrays, and other types
  • Object-oriented and functional programming techniques
  • Directory and filesystem operations
  • Working with graphics, audio, and video
  • GUI development, including JavaFX and handlers
  • Network programming on both client and server
  • Database access, using JPA, Hibernate, and JDBC
  • Processing JSON and XML for data storage
  • Multithreading and concurrency

Ian F. Darwin: author's other books


Who wrote Java Cookbook? Find out the surname, the name of the author of the book and a list of all author's works by series.

Java Cookbook — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Java Cookbook" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Java Cookbook
Ian F. Darwin
Preface
Preface to the Third Edition

Java 8 is the new kid on the block. Java 7 was asignificant but incremental improvement over its predecessors. Somuch has changed since the previous edition of this book! What wasnew in Java 5 has become ubiquitous in Java: annotations, generictypes, concurrency utilities, and more. APIs have come and goneacross the entire tableau of Java: JavaME is pretty much dead nowthat BlackBerry has abandoned it; JSF is (slowly) replacing JSP inparts of Enterprise Java; and Spring continues to expand itsreach. Many people seem to think that desktop Java is dead oreven that Java is dying, but it is definitely not rolling overyet; Swing, JavaFX, Java Enterprise, and (despite a majorlawsuit by Oracle) Android are keeping the Java language very muchalive. Additionally, a renewed interest in other JVM languages suchas Groovy, JRuby, Jython, Scala, and Clojure is keeping the platformin the forefront of the development world.

Indeed, the main challenge in preparing this third edition has beennarrowing down the popular APIs, keeping my own excitement and biases incheck, to make a book that will fit into the size constraintsestablished by the OReilly Cookbook series and my own previouseditions. The book has to remain around 900 pages in length,and it certainly would not were I to try to fit in all that glistens.

Ive also removed certain APIs that were in the previous editions.Most notable is the chapter on serial and parallel ports (pareddown to one recipe in ); computers generally dontship with these anymore, and hardly anybody is using them: the mainattention has moved to USB, and there doesnt seem to be a standardAPI for Java yet (nor, frankly, much real interest among developers).

Preface to Previous Editions

If you know a little Java, great. If you know more Java, even better!This book is ideal for anyone who knows some Java and wants to learnmore. If you dont know any Java yet, you should start with oneof the more introductory books, such as Head First Java (OReilly) or Learning Java (OReilly)if youre new to this family of languages, or Java in a Nutshell (OReilly) if youre an experienced C programmer.

I started programming in C in 1980 while working at the University of Toronto, and C served me quite well through the 1980s and into the 1990s. In 1995, as the nascent language Oak was being renamed Java, I had the good fortune of being told about it by my colleague J. Greg Davidson. I sent an email to the address Greg provided, and got this mail back from James Gosling, Javas inventor, in March 1995:

| Hi. A friend told me about WebRunner(?), your extensible network| browser. It and Oak(?) its extension language, sounded neat. Can| you please tell me if it's available for play yet, and/or if any| papers on it are available for FTP?Check out http://java.sun.com(oak got renamed to java and webrunner got renamed to hotjava to keep the lawyers happy)

So Oak became Java[] and the directory grew faster, reaching the point where it needed subdirectories. Even then, it became increasingly difficult to find things, and it soon became evident that some kind of documentation was needed.

In a sense, this book is the result of a high-speed collision between my javasrc directory and a documentation framework established for another newcomer language. In OReillys Perl Cookbook , Tom Christiansen and Nathan Torkington worked out a very successful design, presenting the material in small, focused articles called recipes, for the then-new Perl language. The original model for such a book is, of course, the familiar kitchen cookbook. Using the term cookbook to refer to an enumeration of how-to recipes relating to computers has a long history. On the software side, Donald Knuth applied the cookbook analogy to his book The Art of Computer Programming (Addison-Wesley), first published in 1968. On the hardware side, Don Lancaster wrote The TTL Cookbook (Sams). (Transistor-transistor logic, or TTL, was the small-scale building block of electronic circuits at the time.) Tom and Nathan worked out a successful variation on this, and I recommend their book for anyone who wishes to, as they put it, learn more Perl. Indeed, the work you are now reading strives to be the book for the person who wishes to learn more Java.

The code in each recipe is intended to be largely self-contained; feel free to borrow bits and pieces of any of it for use in your own projects. The code is distributed with a Berkeley-style copyright, just to discourage wholesale reproduction.

Who This Book Is For

Im going to assume that you know the basics of Java. I wont tellyou how to println a string and a number at the same time, or howto write a class that extends JFrame and prints your name in thewindow. Ill presume youve taken a Java course or studied anintroductory book such as covers some techniques that youmight not know very well and that are necessary to understand someof the later material. Feel free to skip around! Both the printedversion of the book and the electronic copy are heavily cross-referenced.

Whats in This Book?

Unlike my Perl colleagues Tom and Nathan, I dont have to spend as much time on the oddities and idioms of the language; Java is refreshingly free of strange quirks.[] But that doesnt mean its trivial to learn well! If it were, thered be no need for thisbook. My main approach, then, is to concentrate on the Java APIs. Ill teach you byexample what the important APIs are and what they are good for.

Like Perl, Java is a language that grows on you and with you. And, I confess, I use Java most of the time nowadays. Things I once did in Cexcept for device drivers and legacy systemsI now do in Java.

Java is suited to a different range of tasks than Perl, however. Perl (and other scripting languages, such as awk and Python) is particularly suited to the one-liner utility task. As Tom and Nathan show, Perl excels at things like printing the 42nd line from a file. Although Java can certainly do these things, it seems more suited to development in the large, or enterprise applications development, because it is a compiled, object-oriented language. Indeed, much of the API material added in Java 2 was aimed at this type of development. However, I will necessarily illustrate many techniques with shorter examples and even code fragments. Be assured that every fragment of code you see here (except for some one- or two-liners) has been compiled and run.

Some of the longer examples in this book are tools that I originally wrote to automate some mundane task or another. For example, a tool called MkIndex (in the javasrc repository) reads the top-level directory of the place where I keep all my Java example source code and builds a browser-friendly index.html file for that directory. For another example, the body of the first edition was partly composed in XML (see .

Organization of This Book

Lets go over the organization of this book. I start off by describing some methods of compiling your program on different platforms, running them in different environments (browser, command line, windowed desktop), and debugging.

moves from compiling and running your program to getting it to adapt to the surrounding countrysidethe other programs that live in your computer.

The next few chapters deal with basic APIs. concentrates on one of the most basic but powerful data types in Java, showing you how to assemble, dissect, compare, and rearrange what you might otherwise think of as ordinary text.

teaches you how to use the powerful regular expressions technology from Unix in many string-matching and pattern-matching problem domains. Regex processing has been standard in Java for years, but if you dont know how to use it, you may be reinventing the flat tire.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Java Cookbook»

Look at similar books to Java Cookbook. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Java Cookbook»

Discussion, reviews of the book Java Cookbook and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.