This repo contains my solutions to the end-of-chapter exercise’s from Y. Daniel Liang’s Intro to Java Programming (10th Edition)
No AI was used for solving these exercises. We want you to enjoy the experience of studying this book as it was designed to be studied.
I challenge you to let yourself experience creating your own solutions to these. By letting yourself struggle through the more difficult problems I believe you too will gain valuable experience and confidence in your skills.
I've included links below to all the freely accessible companion material and quick links to navigate through my solutions by chapter.
See Contribution Guide for coding guidelines and information on how to contribute.
- About the 10th Edition -
"Daniel Liang teaches concepts of problem-solving and object-oriented programming using a fundamentals-first approach
. Beginning programmers learn critical problem-solving techniques then move on to grasp the key concepts of
object-oriented, GUI programming, advanced GUI and Web programming using Java..."
Companion Content
Additional online learning material that came with the books
Bonus Chapters Online
Exercise Check Tool
Video Notes
Self-Check Chapter Quiz's
Hints to Quizzes and Programming Projects
Checkpoint Answers
UML Diagrams for Chapter 9 - 13
Example Programs By Chapter
Algorithm Animations
Java Coding Style Guidelines
How to Contribute
Coding Guidelines
Solution must use Java 8 SE, as this is the version used by the book.
Every solution should have a java file containing a public main method for testing it.
Naming convention is: ExerciseCC_EE.java where CC is the chapter number and EE is the exercise number.
The public Exercise class containing the main method must include a JavaDoc comment on the class with original exercise question.
Each solution should be its own self-contained program with minimal dependencies on other files. If you need multiple files please create a package for the exercise.
ch_XX/exercise22_07/Exercise22_07.java
This allows us to utilize the Exercise Checking Tool Exercise Checking Tool to verify solutions.
Example exercise solution:
java
package ch_01;
/**
* 1.1 (Display three messages) Write a program that displays Welcome to Java,
* Welcome to Computer Science, and Programming is fun.
*/publicclassExercise01_01 {
publicstaticvoidmain(String[] args) {
System.out.println("Welcome to Java");
System.out.println("Welcome to Computer Science");
System.out.println("Programming is fun");
}
}
Pull requests:
When to use Pull Requests
To add new solutions, that do not already exist.
To add new documentation and/or comments to existing exercise solutions.
How to use Pull Requests
Fork the Master branch
Create a feature branch (with a descriptive name) using the fork from step 1.
Make your changes to your new branch (Only commit and push the files you plan to merge).
Make a Pull Request into our intro-to-java-programming Master branch.
Issue's:
Please feel free to open new Issues.
To request a specific Exercise that you need answered.
Be sure to include the Chapter and Exercise number.
To request a change to an existing solution.
You find an error in an existing solution.
Exercise Solutions:
Quick Links to navigate these solutions by chapter
Indicates 100% completion of all exercises for that chapter
Chapter 1 - Introduction to Computers, Programs, and Java
Chapter 2 - Elementary Programming
Chapter 3 - Selections
Chapter 4 - Mathematical Functions, Characters, and Strings