Do-It-Yourself Java Games: An Introduction to Java Computer Programming, 2nd edition

Купить бумажную книгу и читать

Купить бумажную книгу

По кнопке выше можно купить бумажные варианты этой книги и похожих книг на сайте интернет-магазина "Лабиринт".

Using the button above you can buy paper versions of this book and similar books on the website of the "Labyrinth" online store.

Реклама. ООО "ЛАБИРИНТ.РУ", ИНН: 7728644571, erid: LatgCADz8.

Автор: Annette Godtland

Название: Do-It-Yourself Java Games: An Introduction to Java Computer Programming, 2nd edition

Язык: English

Издательство: Rochester: Godtland Software Corporation

Год: 2014

Формат: pdf

Размер: 13,7 mb

Страниц: 536

Do you like playing computer games? Do you enjoy solving puzzles? If so, you may enjoy computer programming.

Are you a hands-on kind of person? Would you rather start on a project right away instead of first reading long chapters about how things work? Do you lose interest if too much technical information is presented at a time? If so, this may be the right book for you.

In this book you'll learn Java programming fundamentals while creating a wide variety of puzzles and games.

What is discovery learning?

Learn using a hands-on, "try-it" approach. Do the steps shown and see what happens.

Start writing complete programs right away.

Learn Java programming techniques more by doing programming than by reading about them.

Fill in the blanks to write the programs yourself. The answers are at the back of the book.

Discover how, when, and why Java programs are written the way they are.

 

Copyright

Introduction

Setup

Create a Java Work Folder

Download and Install Java

Download and Install Eclipse

Download DIYJava.zip

Set up Eclipse

Project 1 - Hello World

Lesson 1.1 - Java Projects and Packages

Lesson 1.2 - Classes, Superclasses and Programs

Lesson 1.3 - Variables and Strings

Lesson 1.4 - Joining Strings, the Escape Character

Project 2 - ASCII Art

Lesson 2.1 - Print Typeable Characters

Lesson 2.2 - Export a Program

Lesson 2.3 - Share a Program

Project 3 - Name Game

Lesson 3.1 - Reuse Strings

Project 4 - Silly Story

Lesson 4.1 - Input a String

Project 5 - Name Game Revisited

Lesson 5.1 - If Statements, Strings that are Equal or Contain Letters

Project 6 - Choose an Adventure

Lesson 6.1 - Long Strings

Lesson 6.2 - Switch Statements

Lesson 6.3 - Methods

Lesson 6.4 - Switch Default

Lesson 6.5 - Reuse Methods

Project 7 - Finish the Name Game

Lesson 7.1 - Methods with Parameters

Lesson 7.2 - While Loops

Lesson 7.3 - Infinite Loops

Project 8 - Calculator

Lesson 8.1 - Integer Data Type and Addition

Lesson 8.2 - Convert a String to an Integer

Lesson 8.3 - Methods that Return a Value

Lesson 8.4 - Try/Catch Blocks and Exceptions

Lesson 8.5 - Integer Subtraction, Multiplication, and Division

Lesson 8.6 - Double Data Type

Lesson 8.7 - Extend the DIYWindow Class

Project 9 - Guess My Number

Lesson 9.1 - Comparing Numbers

Lesson 9.2 - Generate Random Numbers

Lesson 9.3 - Increment Integers

Project 10 - Temperature Converter

Lesson 10.1 - Order of Operation

Project 11 - Ten Little Chocolates

Lesson 11.1 - For Loops

Project 12 - Word Scramble

Lesson 12.1 - Comments

Lesson 12.2 - String Length and Substring

Lesson 12.3 - Print to the Console

Lesson 12.4 - Arrays

Lesson 12.5 - Static Methods

Project 13 - Secret Code

Lesson 13.1 - Write to a File

Lesson 13.2 - Read from a File, Catch Multiple Exceptions

Lesson 13.3 - Methods with Multiple Parameters

Lesson 13.4 - Index of Characters in a String

Lesson 13.5 - Boolean Data Type

Lesson 13.6 - Case without Break

Lesson 13.7 - System Exit

Lesson 13.8 - Data File with the Jar File

Project 14 - Word Mastermind

Lesson 14.1 - Prompt for Yes or No

Lesson 14.2 - Replace Characters in a String

Lesson 14.3 - Instance Variables

Lesson 14.4 - Convert a String to Uppercase

Lesson 14.5 - Empty Array

Lesson 14.6 - Static Final Variables

Project 15 - Hangman

Lesson 15.1 - Switch Statement with Integers

Lesson 15.2 - Character Data Type

Lesson 15.3 - Index of Next Character

Lesson 15.4 - Check User Input

Lesson 15.5 - Read All Lines of a File, Null Values

Lesson 15.6 - Array Lists

Project 16 - Crazy Eights

Lesson 16.1 - Objects, Card

Lesson 16.2 - Constructors

Lesson 16.3 - Modulo

Lesson 16.4 - Other Card Methods

Lesson 16.5 - Deck

Lesson 16.6 - Hand

Lesson 16.7 - Crazy Eights: Setup

Lesson 16.8 - Crazy Eights: Your Turn

Lesson 16.9 - Crazy Eights: Computer's Turn

Lesson 16.10 - Crazy Eights: Taking Turns

Lesson 16.11 - Crazy Eights: Playing Eights

I Hope You Enjoyed this Book

Questions, Comments, or Suggestions

Other Books I've Written

Appendix A - Glossary

Appendix B - Completed Listings

Appendix C - Install Required Software and Files

Create a Java Work Folder Detailed Instructions

Download and Install Java Detailed Instructions

Download and Install Eclipse Detailed Instructions

Download DIYJava.zip Detailed Instructions

Дата создания страницы: