Skip to content

Commit

Permalink
Add solution Exercise16_07.java
Browse files Browse the repository at this point in the history
HarryDulaney committed Dec 12, 2022
1 parent 37d3421 commit a83bf9d
Showing 3 changed files with 24 additions and 5 deletions.
13 changes: 13 additions & 0 deletions ch_16/Exercise16_08.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package ch_16;

/**
* **16.8 (Geometry: two circles intersect?) Write a program that enables the user to
* specify the location and size of the circles and displays whether the two circles
* intersect, as shown in Figure 16.39a. Enable the user to point the mouse inside a
* circle and drag it. As the circle is being dragged, the circle’s center coordinates
* in the text fields are updated.
* <p>
* FIGURE 16.39 Check whether two circles and two rectangles are overlapping
*/
public class Exercise16_08 {
}
5 changes: 0 additions & 5 deletions ch_16/exercise16_07/Exercise16_07.java
Original file line number Diff line number Diff line change
@@ -2,17 +2,12 @@

import javafx.application.Application;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.text.TextAlignment;
import javafx.stage.Stage;
import javafx.util.converter.NumberStringConverter;

11 changes: 11 additions & 0 deletions ch_23/Exercise23_07.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package ch_23;

/**
* 23.7 (Min-heap) The heap presented in the text is also known as a max-heap, in which
* each node is greater than or equal to any of its children. A min-heap is a heap
* in which each node is less than or equal to any of its children. Min-heaps are
* often used to implement priority queues. Revise the Heap class in Listing 23.9 to
* implement a min-heap.
*/
public class Exercise23_07 {
}

0 comments on commit a83bf9d

Please sign in to comment.