Book description
"Java is the world’s most popular programming language, but it’s known for having a steep learning curve. Learn Java the Easy Way takes the chore out of learning Java with hands-on projects that will get you building real, functioning apps right away.
You’ll start by familiarizing yourself with JShell, Java’s interactive command line shell that allows programmers to run single lines of code and get immediate feedback. Then, you’ll create a guessing game, a secret message encoder, and a multitouch bubble-drawing app for both desktop and mobile devices using Eclipse, an industry-standard IDE, and Android Studio, the development environment for making Android apps.
As you build these apps, you’ll learn how to:
• Perform calculations, manipulate text strings, and generate random colors• Use conditions, loops, and methods to make your programs responsive and concise• Create functions to reuse code and save time• Build graphical user interface (GUI) elements, including buttons, menus, pop-ups, and sliders• Take advantage of Eclipse and Android Studio features to debug your code and find, fix, and prevent common mistakes
If you’ve been thinking about learning Java, Learn Java the Easy Way will bring you up to speed in no time."
Publisher resources
Table of contents
- Cover Page
- Title Page
- Copyright Page
- Brief Contents
- Contents in Detail
- Acknowledgments
- Introduction
- 1: Getting Started
- 2: Build a Hi-Lo Guessing Game App!
-
3: Creating a GUI for Our Guessing Game
- Practicing with JShell
- Setting Up the GUI App in Eclipse
- GUI Design with Eclipse’s WindowBuilder Editor
- Designing the User Interface
- Adding a Method to Check the Player’s Guess
- Starting a New Game
- Listening for User Events: Click to Guess!
- Setting Up the GUI Window
- Time to Play!
- Adding a Play Again Feature
- Improving the UX
- Handling Bad User Input
- What You Learned
- Programming Challenges
-
4: Creating Your First Android App
- Starting a New Android Studio App Project
- Building the GUI Layout in Design View
- Naming GUI Components in Android Studio
- Connecting the GUI to Java in Android Studio
- Adding Methods to Check the Guess and Begin a New Game
- Handling Events in Android
- Running the App on the Android Emulator
- Running the App on a Real Android Device
- Improving the UX
- What You Learned
- Programming Challenges
- 5: Polishing Your App by Adding Menus and Preferences
- 6: Deciphering Secret Messages
- 7: Creating Advanced GUIs and Sharing Your App
- 8: Make Secret Messages a Phone App to Share with Friends!
- 9: Paint Colorful Bubbles with Your Mouse!
-
10: Adding Animation and Collision Detection with Timers
- Copying the BubbleDraw Java Project to Create BubbleDrawGUI
- Adding Animation: Bubbles Rising!
- Forever Blowing Bubbles: Adding Random Speed and Direction
- Building a GUI for Our Animated Drawing App
- Bouncing off the Walls with Collision Detection
- Adding a Slider to Control the Animation Speed
- What You Learned
- Programming Challenges
-
11: Making BubbleDraw a Multitouch Android App
- Setting Up the BubbleDraw Project
- Creating the BubbleView Constructor
- Modifying the Bubble Class
- Drawing in Android with the onDraw() Method
- Testing BubbleDraw with 100 Bubbles
- Using Threaded Animation and Multitasking in Java
- Using Touch to Draw with Your Finger
- Changing the App Launcher Icon
- What You Learned
- Programming Challenges
- Appendix: Debugging and Avoiding Common Errors in Java
- Index
- Resources
Product information
- Title: Learn Java the Easy Way
- Author(s):
- Release date: November 2017
- Publisher(s): No Starch Press
- ISBN: 9781593278465
You might also like
book
Think Java
Currently used at many colleges, universities, and high schools, this hands-on introduction to computer science is …
book
Java for Absolute Beginners: Learn to Program the Fundamentals the Java 9+ Way
Write your first code in Java using simple, step-by-step examples that model real-word objects and events, …
book
Java 17 for Absolute Beginners: Learn the Fundamentals of Java Programming
Write your first code in Java 17 using simple, step-by-step examples that model real-word objects and …
book
Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17
Learn the fundamentals of the Java 17 LTS or Java Standard Edition version 17 Long Term …