Java in easy steps

Java in easy steps

by Mike McGrath
Java in easy steps

Java in easy steps

by Mike McGrath

Paperback(7th ed.)

$15.99 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

Java in easy steps, 7th edition instructs you how to easily create your own Java programs. The book 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.

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 7th edition of Java in easy steps covers the many exciting features of Java, including:

  • How to quickly run statements in the interactive shell named jshell – similar to the Python interpreter.
  • How to make programs with the javac compiler and execute them with the java runtime.
  • How to produce interactive Windows apps that can be easily distributed as jar program bundles.
  • How to create mobile device apps using Java functionality within the Android operating system.
  • All examples illustrated in the book work in Oracle JDK and OpenJDK.


    Product Details

    ISBN-13: 9781840788730
    Publisher: In Easy Steps Limited
    Publication date: 08/25/2019
    Series: In Easy Steps
    Edition description: 7th ed.
    Pages: 192
    Sales rank: 493,090
    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.

    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 if 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 class 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