arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Author

Brett Spell

11 papers · 2015–2015

2015: 11
2015peak 11 in 20152015

Papers

showing 1–11 of 11 RSS

Lambdas and Other Java 8 Features

Brett Spell

Artificial Intelligence · Apress eBooks · · cited 1× · DOI ↗ · more like this ·

Rarely, if ever, has there been a new release of Java that created as much interest as Java 8, which was officially released in early 2014. By far the most talked-about change was the introduction of lambda expressions, although the new release also included a number of other changes, such as the following:

Using XML

Brett Spell

Computer Networks and Communications · Apress eBooks · · cited 1× · DOI ↗ · more like this ·

Although the two aren’t inherently tied together, the eXtensible Markup Language (XML) and Java are often discussed in the same context. This chapter explains why that’s the case and provides an overview of XML, along with a description of some of the tools available and when and how to use them. You’ll look at the following:

Adding Cut-and-Paste Functionality

Brett Spell

Human-Computer Interaction · Apress eBooks · · cited 0× · DOI ↗ · more like this ·

Cut-and-paste functionality is extremely useful because it allows you to transfer data between user interface components and even between different applications. In general, cut-and-paste operations are performed on components that support the concept of a selection, and the operations are initiated by the keyboard and performed for the component that currently has the input focus.

Going Inside Java

Brett Spell

Computer Networks and Communications · Apress eBooks · · cited 0× · DOI ↗ · more like this ·

Java has been described as “a simple, robust, object-oriented, platform-independent, multithreaded, dynamic, general-purpose programming environment.” Living up to this definition allowed Java to grow and expand into so many niches that it’s almost unrecognizable from its earliest days. Today you can find Java just about anywhere you can find a microprocessor. It’s used in the largest of enterprises to the smallest of devices, and it’s used in devices from cell phones to supercooled mainframes. For Java to support such a wide range of environments, an almost bewildering array of application programming interfaces (APIs) and versions have been developed, though they’re built around a common set of core classes.

Using Stream APIs and Collections

Brett Spell

Computer Networks and Communications · Apress eBooks · · cited 0× · DOI ↗ · more like this ·

By definition, an object-oriented application is one that creates and uses objects, and most useful applications create and manage groups of objects. In fact, maintaining a group, or collection, of objects is done so often that Java’s core library has always included classes designed specifically for that purpose.

Using Swing’s JTable

Brett Spell

Computational Theory and Mathematics · Apress eBooks · · cited 0× · DOI ↗ · more like this ·

Many applications need to display data in a tabular form, and Swing provides a table component (also sometimes called a grid) that allows you to do so. The JTable class, defined in the javax.swing package, provides a great deal of functionality that you can use to create a user interface for viewing and updating data. This chapter covers some of the functionality that’s commonly needed when using a table component and illustrates how to implement it using. In the process, you’ll learn a great deal about how JTable works, how to use its existing capabilities, and how to extend its capabilities.

Using Threads in Your Applications

Brett Spell

Information Systems · Apress eBooks · · cited 0× · DOI ↗ · more like this ·

If you’re like most users, you probably have more than one application running on your computer most of the time. In addition, you probably sometimes initiate a long-running task in one application and switch to another application while waiting for that task to complete. For example, you might start downloading a file from the Internet, or begin a search that scans your disk drive for files matching a particular pattern, and then read your e-mail while the download or search is in progress. Running multiple applications simultaneously (or at least appearing to do so) is called multitasking, and each application is usually referred to as a process.

Internationalizing Your Applications

Brett Spell

Information Systems · Apress eBooks · · cited 0× · DOI ↗ · more like this ·

Occasionally software applications are used by only a small number of people within a limited geographic area, but it has become increasingly common for an application to be used by many people in different parts of the world. In some cases, it’s possible to require all your application’s users to understand a single language and use the same symbols and formatting for items such as dates, times, and numeric values. However, most users prefer to work with the language and formatting conventions they’re most comfortable with, and by taking that into consideration when designing your application, you can accommodate their wishes.

Printing

Brett Spell

Computational Theory and Mathematics · Apress eBooks · · cited 0× · DOI ↗ · more like this ·

Java matured very quickly in most respects after it was first introduced, but for a long time printing was one of Java’s weakest points. In fact, Java 1.0 didn’t offer any support for printing at all. Java 1.1 included a class called PrintJob in the java.awt package, but the printing capabilities supported by that class were somewhat crude and unreliable. When Java 1.2 (or “Java 2”) was introduced, it included a completely separate mechanism (the Java 2D printing API) for printing designed around PrinterJob and other classes and interfaces defined in the new java.awt.print package. This rendered the PrintJob-based printing mechanism (also known as AWT printing) largely obsolete, although PrintJob has never been deprecated and is still technically a supported class.

Adding Annotations

Brett Spell

Artificial Intelligence · Apress eBooks · · cited 0× · DOI ↗ · more like this ·

A very useful part of Java is its support for annotations, which are used to define what is sometimes referred to as metadata. To understand what benefits this feature provides, it’s helpful to first realize that the definition of metadata is “data about data.” In other words, metadata is information that describes other data. An example of where metadata has long been used in Java is the java.sql package that contains DatabaseMetaData, ResultSetMetaData, and the relatively new ParameterMetaData interfaces. As implied by the definition just mentioned and by their names, these classes encapsulate data that describes a database, a ResultSet, and parameter information, respectively. For example, ResultSetMetaData allows you to find out how many columns are represented within a ResultSet, the data types associated with those columns, and so on.

Introducing JDBC

Brett Spell

Computer Networks and Communications · Apress eBooks · · cited 0× · DOI ↗ · more like this ·

When your application creates or uses large amounts of data, it’s usually necessary for that information to be stored in a database. Although there has been significant growth in the use of NoSQL databases in recent years, the most widely used type of database is still a relational database, and some examples of relational database products are Oracle, DB2, Sybase, MySQL, and Microsoft SQL Server. A relational database product is sometimes referred to as a relational database management system (RDBMS, or simply DBMS), while a database usually refers to a collection of data managed by a DBMS.