Java in easy steps: Covers Java 9

Java in easy steps: Covers Java 9

by Mike McGrath
Java in easy steps: Covers Java 9

Java in easy steps: Covers Java 9

by Mike McGrath

Paperback(Sixth Edition)

$15.99 
  • SHIP THIS ITEM
    Temporarily Out of Stock Online
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

Java in easy steps, 6th edition instructs you how to easily create your own exciting Java programs. Updated for Java 9, which was released September 2017, it contains separate chapters on the major features of the Java language. Complete example programs with colorized code illustrate each important aspect of Java programming - all in easy steps (examples valid for Java 10, too).

This book assumes no previous knowledge of any programming language so it's ideal for the newcomer to computer programming. Each chapter builds your knowledge of Java. By the end of this book you will have gained a sound understanding of the Java language and be able to write your own Java programs and compile them into executable files that can be run on any Java-enabled device.

This 6th edition of Java in easy steps covers the new features of Java 9, including:

  • REPL (a Read-Eval-Print-Loop) – a new feature of Java 9. This is an interactive shell named JShell, which will be demonstrated in this edition of the book. With JShell, users can quickly run Java statements. It acts in a similar way to the Python interpreter.
  • How to create an Android app, as the core libraries in the Android operating system provide Java functionality.
  • Table of Contents:

    1. Getting started
    2. Performing operations
    3. Making statements
    4. Directing values
    5. Manipulating data
    6. Creating classes
    7. Importing functions
    8. Building interfaces
    9. Recognizing events
    10. Deploying programs

    Product Details

    ISBN-13: 9781840787535
    Publisher: In Easy Steps Limited
    Publication date: 12/05/2017
    Series: In Easy Steps
    Edition description: Sixth Edition
    Pages: 192
    Product dimensions: 7.20(w) x 8.80(h) x 0.50(d)

    About the Author

    Mike McGrath gained his extensive knowledge of computer languages while working as a developer contracting to companies around the world. Mike is an established In Easy Steps author with several guides to his credit including: C++; Javascript, Java, Linux, PHP, SQL and Visual Basic Express.

    Table of Contents

    1 Getting started 7

    Introduction 8

    Installing the JDK 10

    Writing a first Java program 12

    Compiling & running programs 14

    Creating a variable 16

    Recognizing data types 18

    Creating constants 20

    Adding comments 21

    Troubleshooting problems 22

    Summary 24

    2 Performing operations 25

    Doing arithmetic 26

    Assigning values 28

    Comparing values 30

    Assessing logic 32

    Examining conditions 34

    Setting precedence 36

    Escaping literals 38

    Working with bits 40

    Summary 42

    3 Making statements 43

    Branching with it 44

    Branching alternatives 46

    Switching branches 48

    Looping for 50

    Looping while true 52

    Doing do-while loops 54

    Breaking out of loops 56

    Returning control 58

    Summary 60

    4 Directing values 61

    Casting type values 62

    Creating variable arrays 64

    Passing an argument 66

    Passing multiple arguments 68

    Looping through elements 70

    Changing element values 72

    Adding array dimensions 74

    Catching exceptions 76

    Summary 78

    5 Manipulating data 79

    Exploring Java classes 80

    Doing mathematics 82

    Rounding numbers 84

    Generating random numbers 86

    Managing strings 88

    Comparing strings 90

    Searching strings 92

    Manipulating characters 94

    Summary 96

    6 Creating classes 97

    Forming multiple methods 98

    Understanding program scope 100

    Forming multiple classes 102

    Extending an existing class 104

    Creating an object instance 106

    Producing an object instance 108

    Encapsulating properties 110

    Constructing object values 112

    Summary 114

    7 Importing functions 115

    Handling files 116

    Reading console input 118

    Reading files 120

    Writing files 122

    Sorting array elements 124

    Making array lists 126

    Managing dates 128

    Formatting numbers 130

    Summary 132

    8 Building interfaces 133

    Creating a window 134

    Adding push buttons 136

    Adding labels 138

    Adding text fields 140

    Adding item selectors 142

    Adding radio buttons 144

    Arranging components 146

    Changing appearance 148

    Summary 150

    9 Recognizing events 151

    Listening for events 152

    Generating events 153

    Handling button events 154

    Handling item events 156

    Reacting to keyboard events 158

    Responding to mouse events 160

    Announcing messages 162

    Requesting input 164

    Summary 166

    10 Deploying programs 167

    Producing an application 168

    Distributing programs 170

    Building Java archives 172

    Deploying applications 173

    Creating Android projects 174

    Exploring project files 176

    Adding resources & controls 178

    Inserting Java code 180

    Testing the application 182

    Deploying Android apps 184

    Summary 186

    Index 187

    From the B&N Reads Blog

    Customer Reviews