百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

intro-to-java-programming

> DevOps
开源

《Java 程序设计入门》的解决方案,作者: Y. Daniel Liang, 第 10 版

357 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

《Java 程序设计入门》的解决方案,作者: Y. Daniel Liang, 第 10 版

INTRODUCTION TO JAVA PROGRAMMING 10TH EDITION

Exercise Solutions

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.
 */
public class Exercise01_01 {
    public static void main(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

    1. Fork the Master branch
    2. Create a feature branch (with a descriptive name) using the fork from step 1.
    3. Make your changes to your new branch (Only commit and push the files you plan to merge).
    4. 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

Chapter 5 - Loops

Chapter 6 - Methods

Chapter 7 - Single-Dimensional Arrays

Chapter 8 - MultiDimensional Arrays

Chapter 9 - Objects and Classes

Chapter 10 - Object-Oriented Thinking

Chapter 11 - Inheritance and Polymorphism

Chapter 12 - Exception Handling and Text I/O

Chapter 13 - Abstract Classes and Interfaces

Chapter 14 - JavaFx Basics

Chapter 15

  • Event-Driven Programming and Animations

Chapter 16 - JavaFx UI Controls and Multimedia

Exercises Needed: 13, 15, 17, 19, 21, 23, 25, 27, 29, 31

Chapter 17 - Binary I/O

Chapter 18

  • Recursion

Chapter 19 - Generics

Chapter 20

  • Lists, Stacks, Queues, and Priority Queues

Chapter 21

  • Sets and Maps

Chapter 22

  • Developing Efficient Algorithms

Chapter 23

  • Sorting

Chapter 24 - Implementing Lists, Stacks, Queues, and Priority Queues

Chapter 25

  • Binary Search Trees

Chapter 26 - AVL Trees

Chapter 27 - Hashing

Chapter 28 - Graphs and Applications

Chapter 29 - Weighted Graphs and Applications

Chapter 30 - Multithreading and Parallel Programming

Chapter 31 - Networking

Chapter 32 - Java Database Programming

Chapter 33 - Java Server Faces


Checkpoint Answers

Checkpoint Questions at the end of each chapter

Chapter 1 Check Point Questions
Chapter 2 Check Point Questions
Chapter 3 Check Point Questions
Chapter 4 Check Point Questions
Chapter 5 Check Point Questions
Chapter 6 Check Point Questions
Chapter 7 Check Point Questions
Chapter 8 Check Point Questions
Chapter 9 Check Point Questions
Chapter 10 Check Point Questions
Chapter 11 Check Point Questions
Chapter 12 Check Point Questions
Chapter 13 Check Point Questions
Chapter 14 Check Point Questions
Chapter 15 Check Point Questions
Chapter 16 Check Point Questions
Chapter 17 Check Point Questions
Chapter 18 Check Point Questions
Chapter 19 Check Point Questions
Chapter 20 Check Point Questions
Chapter 21 Check Point Questions
Chapter 22 Check Point Questions
Chapter 23 Check Point Questions
Chapter 24 Check Point Questions
Chapter 25 Check Point Questions
Chapter 26 Check Point Questions
Chapter 27 Check Point Questions
Chapter 28 Check Point Questions
Chapter 29 Check Point Questions
Chapter 30 Check Point Questions
Chapter 31 Check Point Questions
Chapter 32 Check Point Questions
Chapter 33 Check Point Questions
Chapter 34 Check Point Questions
Chapter 35 Check Point Questions
Chapter 36 Check Point Questions
Chapter 37 Check Point Questions
Chapter 38 Check Point Questions
Chapter 39 Check Point Questions
Chapter 40 Check Point Questions
Chapter 41 Check Point Questions
Chapter 42 Check Point Questions
Chapter 43 Check Point Questions
Chapter 44 Check Point Questions
Chapter 45 Check Point Questions

Self-Check Quiz's

Self-Check Quiz's are provided for self testing and reinforcing what you leaned in the chapter

Chapter 1 Self-Check Quiz
Chapter 2 Self-Check Quiz
Chapter 3 Self-Check Quiz
Chapter 4 Self-Check Quiz
Chapter 5 Self-Check Quiz
Chapter 6 Self-Check Quiz
Chapter 7 Self-Check Quiz
Chapter 8 Self-Check Quiz
Chapter 9 Self-Check Quiz
Chapter 10 Self-Check Quiz
Chapter 11 Self-Check Quiz
Chapter 12 Self-Check Quiz
Chapter 13 Self-Check Quiz
Chapter 14 Self-Check Quiz

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javaalgorithms-and-data-structurescomputer-sciencecore-javacs-fundamentals

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理