Book description
Gain the essential skills for computer science using one of today's most popular programming languages, Java. This book will prepare you for AP CompSci Complete, but you don’t need to be sitting that class to benefit. Computer science has become a basic life skill that everyone is going to need to learn. Whether you are going into a career or side hustle in business, technology, creativity, architecture, or almost any other field, you will find coding and computer science play a role.
So when we learn programming we are going to focus on three things: what is the process; what is the syntax; and what is the flow. The process is represented as a flowchart. We will learn how to make these to help you plan out what you are going to do before you write a line of code. At first, the flowcharts will be pretty simple, but then they will get more complex. The syntax is the code: this is what you write that translates the process you create in a flowchart to the instructions that the computer can understand. Finally, there is the flow. This is where you trace through the code and see how the data and information it stores along the way changes. You can see how the operation of the program cascades from line to line. You will be building charts that will capture the programming flow so you can better understand how the computer processes code to make your next program easier to conceive and code.
Along the way to aid in the learning of the essential Java skills, there will be three kinds of project types throughout this book: business software projects for applications where you work for a company and need to complete an internal project for a team such as the sales, marketing, or data science teams; social good projects where you are working for non-profits or for agencies that are trying to research and provide solutions to economic, environmental, medical, or humanitarian projects; and game development projects for games based on player input, random chance, or other mechanics for the use of entertainment.
What is unique about computer science is how it has become a skill, and not just a career. While there are jobs and titles of “computer scientist”, the skill of computer science, and specifically programming, are almost everywhere. After reading and using this book, you'll have the essential skills to think like a computer scientist, even if you are not. As a result you’ll be of greater value to your clients, your company, and yourself.
What You Will Learn
- Discover the primary building blocks of programming using the Java programming language
- See terminology and best practices of software development
- Work with object-oriented programming concepts
- Use common-language definitions and examples to help drive understanding and comprehension of computer science fundamentals
Who This Book Is For
Those who want to learn programming and want to think like a computer scientist. Ideal for anyone taking AP CompSci Complete.
Table of contents
- Cover
- Front Matter
- 1. Introduction
- 2. Setting Up the Java JDK and IntelliJ
- 3. Setting Up GitHub
- 4. Programming Languages
- 5. History and Uses of Java
- 6. How Java Works
- 7. Flowcharting
- 8. Hello, World
- 9. Simple Java Program Structure
- 10. Text Literals and Output
- 11. Value Literals
- 12. Output Formatting
- 13. Comments and Whitespace
- 14. Abstraction of Numbers
- 15. Binary
- 16. Unicode
- 17. Variables
- 18. Math!
- 19. Math Methods
- 20. Managing Type
- 21. Random Numbers
- 22. Capture Input
- 23. Creating Trace Tables
- 24. Methods
- 25. Calling Methods Within Methods
- 26. Methods and Values
- 27. Methods and Scope
- 28. Boolean Values and Equality
- 29. Simple Conditional Statements
- 30. Matching Conditions with the switch Statement
- 31. The Ternary Operator
- 32. The Stack and the Heap
- 33. Testing Equality with Strings
- 34. Dealing with Errors
- 35. Documenting with JavaDoc
- 36. Formatted Strings
- 37. The while Loop
- 38. Automatic Program Loops
- 39. The do/while Loop
- 40. Simplified Assignment Operators
- 41. The for Loop
- 42. Nesting Loops
- 43. Strings as Collections
- 44. Make Collections Using Arrays
- 45. Creating Arrays from Strings
- 46. Multidimensional Arrays
- 47. Looping Through Multidimensional Arrays
- 48. Beyond Arrays with ArrayLists
- 49. Introducing Generics
- 50. Looping with ArrayLists
- 51. Using for…each Loops
- 52. The Role-Playing Game Character
- 53. Polymorphism
- 54. Make All the Things…Classes
- 55. Class, Extend Thyself!
- 56. I Don’t Collect Those; Too Abstract
- 57. Access Denied: Protected and Private
- 58. Interfacing with Interfaces
- 59. All I’m Getting Is Static
- 60. An All-Star Cast, Featuring Null
- Back Matter
Product information
- Title: Essential Java for AP CompSci: From Programming to Computer Science
- Author(s):
- Release date: July 2021
- Publisher(s): Apress
- ISBN: 9781484261835
You might also like
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Effective Java, 3rd Edition
Since this Jolt-award winning classic was last updated in 2008, the Java programming environment has changed …
book
Java Coding Problems
Develop your coding skills by exploring Java concepts and techniques such as Strings, Objects and Types, …
book
Java Cookbook, 4th Edition
Java continues to grow and evolve, and this cookbook continues to evolve in tandem. With this …