└── src ├── ch24 ├── ex24_07 │ ├── addressbook │ │ ├── db.lck │ │ ├── log │ │ │ ├── log.ctrl │ │ │ ├── log3.dat │ │ │ ├── logmirror.ctrl │ │ │ └── README_DO_NOT_TOUCH_FILES.txt │ │ ├── seg0 │ │ │ ├── c10.dat │ │ │ ├── c20.dat │ │ │ ├── c31.dat │ │ │ ├── c41.dat │ │ │ ├── c51.dat │ │ │ ├── c60.dat │ │ │ ├── c71.dat │ │ │ ├── c81.dat │ │ │ ├── c90.dat │ │ │ ├── ca1.dat │ │ │ ├── cb1.dat │ │ │ ├── cc0.dat │ │ │ ├── cd1.dat │ │ │ ├── ce1.dat │ │ │ ├── cf0.dat │ │ │ ├── c101.dat │ │ │ ├── c111.dat │ │ │ ├── c121.dat │ │ │ ├── c130.dat │ │ │ ├── c141.dat │ │ │ ├── c150.dat │ │ │ ├── c161.dat │ │ │ ├── c171.dat │ │ │ ├── c180.dat │ │ │ ├── c191.dat │ │ │ ├── c1a1.dat │ │ │ ├── c1b1.dat │ │ │ ├── c1c0.dat │ │ │ ├── c1d1.dat │ │ │ ├── c1e0.dat │ │ │ ├── c1f1.dat │ │ │ ├── c200.dat │ │ │ ├── c211.dat │ │ │ ├── c221.dat │ │ │ ├── c230.dat │ │ │ ├── c241.dat │ │ │ ├── c251.dat │ │ │ ├── c260.dat │ │ │ ├── c271.dat │ │ │ ├── c281.dat │ │ │ ├── c290.dat │ │ │ ├── c2a1.dat │ │ │ ├── c2b1.dat │ │ │ ├── c2c1.dat │ │ │ ├── c2d0.dat │ │ │ ├── c2e1.dat │ │ │ ├── c2f0.dat │ │ │ ├── c300.dat │ │ │ ├── c311.dat │ │ │ ├── c321.dat │ │ │ ├── c331.dat │ │ │ ├── c340.dat │ │ │ ├── c351.dat │ │ │ ├── c361.dat │ │ │ ├── c371.dat │ │ │ ├── c380.dat │ │ │ ├── c391.dat │ │ │ ├── c3a1.dat │ │ │ ├── c3b1.dat │ │ │ ├── c3c0.dat │ │ │ ├── c3d1.dat │ │ │ ├── c3e1.dat │ │ │ ├── c3f1.dat │ │ │ ├── c400.dat │ │ │ ├── c411.dat │ │ │ ├── c421.dat │ │ │ ├── c430.dat │ │ │ ├── c441.dat │ │ │ ├── c451.dat │ │ │ ├── c461.dat │ │ │ ├── c470.dat │ │ │ ├── c481.dat │ │ │ ├── c490.dat │ │ │ └── README_DO_NOT_TOUCH_FILES.txt │ │ └── README_DO_NOT_TOUCH_FILES.txt │ ├── addressbook.sql │ ├── AddressBook.java │ └── derby.log ├── ex24_08 │ ├── addressbook │ │ ├── db.lck │ │ ├── log │ │ │ ├── log.ctrl │ │ │ ├── log2.dat │ │ │ ├── logmirror.ctrl │ │ │ └── README_DO_NOT_TOUCH_FILES.txt │ │ ├── seg0 │ │ │ ├── c10.dat │ │ │ ├── c20.dat │ │ │ ├── c31.dat │ │ │ ├── c41.dat │ │ │ ├── c51.dat │ │ │ ├── c60.dat │ │ │ ├── c71.dat │ │ │ ├── c81.dat │ │ │ ├── c90.dat │ │ │ ├── ca1.dat │ │ │ ├── cb1.dat │ │ │ ├── cc0.dat │ │ │ ├── cd1.dat │ │ │ ├── ce1.dat │ │ │ ├── cf0.dat │ │ │ ├── c101.dat │ │ │ ├── c111.dat │ │ │ ├── c121.dat │ │ │ ├── c130.dat │ │ │ ├── c141.dat │ │ │ ├── c150.dat │ │ │ ├── c161.dat │ │ │ ├── c171.dat │ │ │ ├── c180.dat │ │ │ ├── c191.dat │ │ │ ├── c1a1.dat │ │ │ ├── c1b1.dat │ │ │ ├── c1c0.dat │ │ │ ├── c1d1.dat │ │ │ ├── c1e0.dat │ │ │ ├── c1f1.dat │ │ │ ├── c200.dat │ │ │ ├── c211.dat │ │ │ ├── c221.dat │ │ │ ├── c230.dat │ │ │ ├── c241.dat │ │ │ ├── c251.dat │ │ │ ├── c260.dat │ │ │ ├── c271.dat │ │ │ ├── c281.dat │ │ │ ├── c290.dat │ │ │ ├── c2a1.dat │ │ │ ├── c2b1.dat │ │ │ ├── c2c1.dat │ │ │ ├── c2d0.dat │ │ │ ├── c2e1.dat │ │ │ ├── c2f0.dat │ │ │ ├── c300.dat │ │ │ ├── c311.dat │ │ │ ├── c321.dat │ │ │ ├── c331.dat │ │ │ ├── c340.dat │ │ │ ├── c351.dat │ │ │ ├── c361.dat │ │ │ ├── c371.dat │ │ │ ├── c380.dat │ │ │ ├── c391.dat │ │ │ ├── c3a1.dat │ │ │ ├── c3b1.dat │ │ │ ├── c3c0.dat │ │ │ ├── c3d1.dat │ │ │ ├── c3e1.dat │ │ │ ├── c3f1.dat │ │ │ ├── c400.dat │ │ │ ├── c411.dat │ │ │ ├── c421.dat │ │ │ ├── c430.dat │ │ │ ├── c441.dat │ │ │ ├── c451.dat │ │ │ ├── c461.dat │ │ │ ├── c470.dat │ │ │ ├── c481.dat │ │ │ ├── c490.dat │ │ │ └── README_DO_NOT_TOUCH_FILES.txt │ │ └── README_DO_NOT_TOUCH_FILES.txt │ ├── addressbook.sql │ ├── AddressBook.java │ └── derby.log └── ex24_04 │ ├── derby.log │ ├── employees │ ├── log │ │ ├── log.ctrl │ │ ├── logmirror.ctrl │ │ └── README_DO_NOT_TOUCH_FILES.txt │ ├── seg0 │ │ ├── c10.dat │ │ ├── c20.dat │ │ ├── c31.dat │ │ ├── c41.dat │ │ ├── c51.dat │ │ ├── c60.dat │ │ ├── c71.dat │ │ ├── c81.dat │ │ ├── c90.dat │ │ ├── ca1.dat │ │ ├── cb1.dat │ │ ├── cc0.dat │ │ ├── cd1.dat │ │ ├── ce1.dat │ │ ├── cf0.dat │ │ ├── c101.dat │ │ ├── c111.dat │ │ ├── c121.dat │ │ ├── c130.dat │ │ ├── c141.dat │ │ ├── c150.dat │ │ ├── c161.dat │ │ ├── c171.dat │ │ ├── c180.dat │ │ ├── c191.dat │ │ ├── c1a1.dat │ │ ├── c1b1.dat │ │ ├── c1c0.dat │ │ ├── c1d1.dat │ │ ├── c1e0.dat │ │ ├── c1f1.dat │ │ ├── c200.dat │ │ ├── c211.dat │ │ ├── c221.dat │ │ ├── c230.dat │ │ ├── c241.dat │ │ ├── c251.dat │ │ ├── c260.dat │ │ ├── c271.dat │ │ ├── c281.dat │ │ ├── c290.dat │ │ ├── c2a1.dat │ │ ├── c2b1.dat │ │ ├── c2c1.dat │ │ ├── c2d0.dat │ │ ├── c2e1.dat │ │ ├── c2f0.dat │ │ ├── c300.dat │ │ ├── c311.dat │ │ ├── c321.dat │ │ ├── c331.dat │ │ ├── c340.dat │ │ ├── c351.dat │ │ ├── c361.dat │ │ ├── c371.dat │ │ ├── c380.dat │ │ ├── c391.dat │ │ ├── c3a1.dat │ │ ├── c3b1.dat │ │ ├── c3c0.dat │ │ ├── c3d1.dat │ │ ├── c3e1.dat │ │ ├── c3f1.dat │ │ ├── c400.dat │ │ ├── c411.dat │ │ ├── c421.dat │ │ ├── c430.dat │ │ ├── c441.dat │ │ ├── c451.dat │ │ ├── c461.dat │ │ ├── c470.dat │ │ ├── c481.dat │ │ ├── c490.dat │ │ ├── c4a1.dat │ │ ├── c4b0.dat │ │ ├── c4c1.dat │ │ ├── c4d0.dat │ │ ├── c4e1.dat │ │ ├── c4f0.dat │ │ ├── c501.dat │ │ ├── c510.dat │ │ ├── c521.dat │ │ └── README_DO_NOT_TOUCH_FILES.txt │ ├── service.properties │ └── README_DO_NOT_TOUCH_FILES.txt │ └── Employees.java ├── ch10 ├── ex10_14 │ ├── Shape.java │ ├── Test.java │ ├── TwoDimensionalShape.java │ ├── ThreeDimensionalShape.java │ ├── Square.java │ ├── Circle.java │ ├── Cube.java │ ├── Sphere.java │ ├── Tetrahedron.java │ └── Triangle.java ├── ex10_17 │ ├── CompensationModel.java │ ├── SalariedCompensationModel.java │ ├── CommissionCompensationModel.java │ ├── HourlyCompensationModel.java │ ├── BasePlusCommissionCompensationModel.java │ └── Test.java ├── ex10_18 │ ├── CompensationModel.java │ └── SalariedCompensationModel.java └── GUIAndGraphicsCaseStudyExercises │ ├── ex10_01 │ ├── MyLine.java │ └── DrawRandomShapes.java │ └── ex10_02 │ ├── MyLine.java │ ├── MyOval.java │ ├── DrawRandomShapes.java │ └── MyRectangle.java ├── ch12 ├── ex12_03 │ ├── bug.png │ ├── Welcome.java │ └── Welcome.fxml ├── ex12_02 │ ├── images │ │ ├── eiffeltower.jpg │ │ ├── greatwall.jpg │ │ ├── xrussia_kremlin.jpg │ │ └── usa_statueofliberty.jpg │ └── ScrapbookingApp.java ├── ex12_01 │ └── AdditionApp.java └── ex12_04 │ └── MortgageCalculator.java ├── ch02 ├── ex02_33 │ └── BMI.java ├── ex02_25 │ └── OddOrEven.java ├── ex02_30 │ └── SeparatingDigits.java ├── ex02_17 │ └── ArithmeticSmallestAndLargest.java └── ex02_26 │ └── Multiples.java ├── ch03 ├── ex03_14 │ ├── Date.java │ └── DateTest.java ├── ex03_12 │ ├── Invoice.java │ └── InvoiceTest.java ├── ex03_13 │ ├── Employee.java │ └── EmployeeTest.java ├── ex03_17 │ └── HealthProfileTest.java ├── GUIStudyExercise │ ├── Big Ben - London.jpg │ ├── Eiffel Tower - Paris.jpg │ ├── Kerry Park - Seattle.jpg │ └── Manhattan Bridge - New York.jpg └── ex03_16 │ └── HeartRatesTest.java ├── ch05 ├── ex05_16 │ └── Ex05_16.java ├── ex05_13 │ └── Factorials.java ├── ex05_12 │ └── ProductOfOddintegers.java ├── GUIAndGraphicsCaseStudyExercises │ ├── ex05_01 │ │ ├── DrawCirclesController.java │ │ ├── DrawCircles.java │ │ └── DrawCircles.fxml │ └── ex05_02 │ │ ├── DrawCirclesAndSquares.java │ │ ├── DrawCirclesAndSquares.fxml │ │ └── DrawCirclesAndSquaresController.java └── ex05_20 │ └── ValueOfPI.java ├── ch15 ├── ex15_04 │ ├── Account.java │ ├── FileMatch.java │ ├── CreateData.java │ └── TransactionRecord.java ├── ex15_05 │ ├── Account.java │ ├── FileMatch.java │ ├── CreateData.java │ └── TransactionRecord.java ├── ex15_06 │ ├── Account.java │ ├── FileMatch.java │ ├── CreateData.java │ └── TransactionRecord.java └── ex15_08 │ └── PesquisaEntreAlunos.java ├── ch17 ├── ex17_21 │ └── Ex17_21.java ├── ex17_22 │ └── Ex17_22.java ├── ex17_25 │ └── TimingDieRolls.java ├── ex17_20 │ └── AverageWithIntStream.java ├── ex17_18 │ └── SummingTheTriplesOfTheEven.java ├── ex17_23 │ └── Person.java ├── ex17_10 │ └── Chapter2Paragraph.txt ├── ex17_16 │ └── IntSreamFilteringAndSorting.java └── ex17_13 │ └── DuplicateWordRemoval.java ├── ch26 ├── ex26_19 │ └── Ecofont.java ├── ex26_16 │ └── JogoDados.java ├── ex26_09 │ └── Calculator.java ├── ex26_10 │ └── ColorSelect.java ├── ex26_14 │ └── AdivinheNumero.java ├── ex26_15 │ └── ExibindoEventos.java ├── ex26_20 │ └── ProfessorDigitacao.java ├── ex26_12 │ └── ConversaoDeTemperatura.java └── ex26_13 │ └── ModificacaoConversaoDeTemperatura.java ├── ch27 ├── ex27_16 │ └── Cubos.java ├── ex27_15 │ └── Tetraedro.java ├── ex27_12 │ └── GradeLine2D.java ├── ex27_18 │ └── ProtetorTela.java ├── ex27_23 │ ├── images │ │ ├── baixa.png │ │ ├── cima.png │ │ └── tartaruga23-1.png │ └── GraficosTartarugaPanel.java ├── ex27_24 │ └── images │ │ ├── config.png │ │ ├── 24infinito.png │ │ ├── bolinha24.png │ │ ├── 24cavaloazul1.png │ │ ├── 24cavaloazul2.png │ │ ├── 24cavaloverde.png │ │ ├── 24cavaloamarelo1.png │ │ ├── 24cavaloamarelo2.jpg │ │ ├── 24cavaloamarelo3.png │ │ ├── 24cavalobranco1.png │ │ ├── 24cavalopreto1.png │ │ ├── 24cavalopreto2.png │ │ ├── 24cavalopreto3.png │ │ ├── 24cavalopreto4.png │ │ └── 24cavalovermelho.png ├── ex27_11 │ └── GradeDrawLine.java ├── ex27_13 │ └── GradeDrawRect.java ├── ex27_25 │ ├── LebreTartaruga.java │ └── images │ │ ├── Lebre25.png │ │ ├── cesto25.png │ │ ├── Bandeira25.png │ │ └── Tartaruga25.png ├── ex27_27 │ ├── GraficoDePizza.java │ └── GraficoDePizzaFrame.java ├── ex27_32 │ └── FontesMaiores.java ├── ex27_08 │ └── LinhasAleatorias.java ├── ex27_09 │ └── RandomTriangles.java ├── ex27_10 │ └── RandomCharacters.java ├── ex27_14 │ └── GradeRectangle2D.java ├── ex27_19 │ └── ProtetorTelaTimer.java ├── ex27_21 │ └── ProtetorTelaFormas.java ├── ex27_26 │ └── DesenhandoEspirais.java ├── ex27_22 │ └── ProtetorTelaJava2DAPI.java ├── ex27_29 │ ├── CoresAleatoriasFrame.java │ └── CoresAleatoriasPanel.java ├── ex27_28 │ ├── SelecionandoFormasFrame.java │ └── SelecionandoFormasPanel.java ├── ex27_06 │ └── CirculosConcentricosDrawArc.java ├── ex27_30 │ ├── DialogoJColorChooserFrame.java │ └── DialogoJColorChooserPanel.java └── ex27_07 │ └── CirculosConcentricosEllipse2D.java ├── ch35 └── ex35_07 │ ├── Circle.java │ └── CirclePanel.java ├── ch04 ├── ex04_31 │ └── Palindromes.java ├── ex04_33 │ └── InfinityLoop.java ├── ex04_38 │ ├── FactorialC.java │ └── FactorialA.java ├── ex04_32 │ └── DecimalToBinary.java ├── ex04_39 │ └── EnforcingPrivacyWithCryptography.java ├── GUIAndGraphicsCaseStudyExercises │ ├── ex04_01 │ │ ├── part_a │ │ │ ├── DrawLines.java │ │ │ ├── DrawLinesController.java │ │ │ └── DrawLines.fxml │ │ └── part_b │ │ │ ├── DrawLines.java │ │ │ └── DrawLines.fxml │ └── ex04_02 │ │ ├── part_a │ │ ├── DrawLines.java │ │ ├── DrawLines.fxml │ │ └── DrawLinesController.java │ │ └── part_b │ │ ├── DrawLines.java │ │ └── DrawLines.fxml └── ex04_30 │ └── SquareOfAsterisks.java ├── ch06 ├── ex06_20 │ └── CircleArea.java ├── ex06_25 │ └── PrimeNumbers.java ├── ex06_29 │ └── CoinTossing.java ├── GUIAndGraphicsCaseStudyExercises │ ├── ex06_01 │ │ ├── DrawBullseye.java │ │ └── DrawBullseye.fxml │ └── ex06_02 │ │ ├── DrawShapes.java │ │ └── DrawShapes.fxml ├── ex06_17 │ └── EvenOrOdd.java └── ex06_26 │ └── ReversingDigits.java ├── ch07 ├── ex07_15 │ ├── InitArray.class │ └── InitArray.java ├── ex07_10 │ └── SalesCommissions.java ├── ex07_29 │ └── FibonacciSeries.java ├── ex07_12 │ └── DuplicateElimination.java ├── ex07_19 │ └── AirlineReservationsSystem.java ├── ex07_37 │ └── ComputerSimulatorTest.java ├── ex07_30 │ ├── DeckOfCardsTest.java │ └── Card.java ├── ex07_16 │ └── Foreach.java ├── GUIAndGraphicsCaseStudyExercises │ └── ex07_01 │ │ ├── DrawSpiralLines.java │ │ └── DrawSpiralLines.fxml ├── ex07_31 │ └── Card.java └── ex07_14 │ └── VariableLengthArgumentList.java ├── ch08 ├── ex08_17 │ ├── HugeInteger.java │ └── HugeIntegerTest.java ├── ex08_04 │ └── RectangleTest.java ├── ex08_13 │ ├── IntegerSetTest.java │ └── IntegerSet.java ├── ex08_15 │ └── DateTest.java ├── ex08_10 │ ├── TrafficLight.java │ └── TrafficLightTest.java ├── ex08_11 │ └── ComplexTest.java ├── ex08_16 │ └── RationalTest.java ├── ex08_06 │ ├── SavingsAccountTest.java │ └── SavingsAccount.java ├── GUIAndGraphicsCaseStudyExercises │ └── ex08_01 │ │ └── DrawRandomLines.fxml └── ex08_14 │ └── IntegerSetTest.java ├── ch14 ├── ex14_07 │ └── LatimDePorco.java ├── ex14_22 │ └── CodigoMorse.java ├── ex14_27 │ └── ScannerDeSpam.java ├── ex14_03 │ └── ComparandoStrings.java ├── ex14_20 │ └── ProtecaoDeCheque.java ├── ex14_05 │ └── SentencasAleatorias.java ├── ex14_11 │ └── PesquisandoStrings.java ├── ex14_12 │ └── PesquisandoStrings.java ├── ex14_23 │ └── ConversoesMetricas.java ├── ex14_18 │ └── Ex14_18_AnaliseDeTexto.java ├── ex14_25 │ └── GeradorPalavrasCruzadas.java ├── ex14_04 │ └── ComparandoPartesDeStrings.java ├── ex14_08 │ └── TokenizandoNumerosTelefones.java ├── ex14_10 │ └── LetrasMaiusculasEMinusculas.java ├── ex14_15 │ └── ConvertendoIntEmCaracteres.java ├── ex14_19 │ └── ImprimindoDatasVariosFormatos.java ├── ex14_13 │ └── Ex14_13_TokenizandoEComparandoStrings.java ├── ex14_14 │ └── Ex14_14_TokenizandoEComparandoStrings.java └── ex14_09 │ └── ExibindoUmaFraseComAsPalavrasInvertidas.java ├── ch16 ├── ex16_15 │ └── SeletorDeCor.java ├── ex16_14 │ └── ContandoLetras.java ├── ex16_16 │ └── ContandoPalavrasDuplicadas.java ├── ex16_21 │ └── AlterandoOrdemPriorityQueue.java ├── ex16_20 │ └── ClassificandoPalavrasComUmTreeSet.java ├── ex16_19 │ └── NumeroPrimosEFatoresPrimos.java └── ex16_18 │ └── CopiandoEInvertendoLinkedList.java ├── ch11 ├── ex11_19 │ ├── SomeClassTest.java │ └── SomeClass.java ├── ex11_16 │ ├── ExceptionB.java │ ├── ExceptionC.java │ ├── ExceptionA.java │ └── Test.java ├── ex11_17 │ ├── ExceptionB.java │ └── ExceptionA.java ├── ex11_20 │ └── RethrowingExceptions.java ├── ex11_18 │ └── OrderOfCatchBlocks.java └── ex11_21 │ └── CatchingExceptionsUsingOuterScopes.java ├── ch09 ├── ex09_15 │ ├── HourlyEmployeeTest.java │ └── Employee.java ├── ex09_03 │ └── BasePlusCommissionEmployee.java ├── ex09_16 │ ├── CompensationModel.java │ ├── CommissionCompensationModel.java │ ├── BasePlusCommissionCompensationModel.java │ └── Test.java └── ex09_14 │ └── Employee.java ├── ch28 ├── ex28_13 │ ├── FileReaderServerTest.java │ └── FileReaderClientTest.java └── ex28_14 │ ├── FileReaderServerTest.java │ └── FileReaderClient.java ├── ch21 ├── ex21_06 │ └── EmptyListException.java ├── ex21_07 │ ├── EmptyListException.java │ └── ListTest.java ├── ex21_08 │ ├── EmptyListException.java │ └── ListTest.java ├── ex21_09 │ ├── EmptyListException.java │ └── ReverseCopy.java ├── ex21_20 │ └── EmptyListException.java └── ex21_10 │ ├── EmptyListException.java │ ├── StackComposition.java │ └── SentenceInReverseOrderTest.java ├── ch20 ├── ex20_05 │ └── InvalidSubscriptException.java ├── ex20_08 │ └── Pair.java └── ex20_07 │ └── GenericMethodIsEqualToTest.java ├── ch29 ├── ex29_02 │ ├── addressbook.sql │ └── AddressBook.java └── ex29_03 │ ├── addressbook.sql │ └── AddressBook.java ├── ch23 ├── ex23_10 │ └── RebatingTheBall.java └── ex23_11 │ └── RebatingTheBall.java ├── ch18 ├── ex18_22 │ └── MazeTest.java ├── ex18_16 │ └── PrintArray.java └── ex18_18 │ └── Ex18_18.java └── ch13 ├── ex13_04 └── Contacts.java └── ex13_06 └── TipCalculator.java /src/ch24/ex24_07/addressbook/db.lck: -------------------------------------------------------------------------------- 1 | $a816c00e-0172-9c95-6cbd-000002966430 -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/db.lck: -------------------------------------------------------------------------------- 1 | $a816c00e-0172-9c93-0bb8-000002967060 -------------------------------------------------------------------------------- /src/ch10/ex10_14/Shape.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_14; 2 | 3 | public abstract class Shape { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/ch12/ex12_03/bug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch12/ex12_03/bug.png -------------------------------------------------------------------------------- /src/ch02/ex02_33/BMI.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch02/ex02_33/BMI.java -------------------------------------------------------------------------------- /src/ch03/ex03_14/Date.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch03/ex03_14/Date.java -------------------------------------------------------------------------------- /src/ch10/ex10_14/Test.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch10/ex10_14/Test.java -------------------------------------------------------------------------------- /src/ch24/ex24_04/derby.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/derby.log -------------------------------------------------------------------------------- /src/ch03/ex03_12/Invoice.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch03/ex03_12/Invoice.java -------------------------------------------------------------------------------- /src/ch05/ex05_16/Ex05_16.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch05/ex05_16/Ex05_16.java -------------------------------------------------------------------------------- /src/ch15/ex15_04/Account.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_04/Account.java -------------------------------------------------------------------------------- /src/ch15/ex15_05/Account.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_05/Account.java -------------------------------------------------------------------------------- /src/ch15/ex15_06/Account.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_06/Account.java -------------------------------------------------------------------------------- /src/ch17/ex17_21/Ex17_21.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch17/ex17_21/Ex17_21.java -------------------------------------------------------------------------------- /src/ch17/ex17_22/Ex17_22.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch17/ex17_22/Ex17_22.java -------------------------------------------------------------------------------- /src/ch26/ex26_19/Ecofont.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch26/ex26_19/Ecofont.java -------------------------------------------------------------------------------- /src/ch27/ex27_16/Cubos.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_16/Cubos.java -------------------------------------------------------------------------------- /src/ch35/ex35_07/Circle.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch35/ex35_07/Circle.java -------------------------------------------------------------------------------- /src/ch02/ex02_25/OddOrEven.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch02/ex02_25/OddOrEven.java -------------------------------------------------------------------------------- /src/ch03/ex03_13/Employee.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch03/ex03_13/Employee.java -------------------------------------------------------------------------------- /src/ch15/ex15_04/FileMatch.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_04/FileMatch.java -------------------------------------------------------------------------------- /src/ch15/ex15_05/FileMatch.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_05/FileMatch.java -------------------------------------------------------------------------------- /src/ch15/ex15_06/FileMatch.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_06/FileMatch.java -------------------------------------------------------------------------------- /src/ch26/ex26_16/JogoDados.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch26/ex26_16/JogoDados.java -------------------------------------------------------------------------------- /src/ch27/ex27_15/Tetraedro.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_15/Tetraedro.java -------------------------------------------------------------------------------- /src/ch04/ex04_31/Palindromes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch04/ex04_31/Palindromes.java -------------------------------------------------------------------------------- /src/ch04/ex04_33/InfinityLoop.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch04/ex04_33/InfinityLoop.java -------------------------------------------------------------------------------- /src/ch04/ex04_38/FactorialC.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch04/ex04_38/FactorialC.java -------------------------------------------------------------------------------- /src/ch05/ex05_13/Factorials.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch05/ex05_13/Factorials.java -------------------------------------------------------------------------------- /src/ch06/ex06_20/CircleArea.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch06/ex06_20/CircleArea.java -------------------------------------------------------------------------------- /src/ch06/ex06_25/PrimeNumbers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch06/ex06_25/PrimeNumbers.java -------------------------------------------------------------------------------- /src/ch06/ex06_29/CoinTossing.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch06/ex06_29/CoinTossing.java -------------------------------------------------------------------------------- /src/ch07/ex07_15/InitArray.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch07/ex07_15/InitArray.class -------------------------------------------------------------------------------- /src/ch08/ex08_17/HugeInteger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch08/ex08_17/HugeInteger.java -------------------------------------------------------------------------------- /src/ch14/ex14_07/LatimDePorco.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_07/LatimDePorco.java -------------------------------------------------------------------------------- /src/ch14/ex14_22/CodigoMorse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_22/CodigoMorse.java -------------------------------------------------------------------------------- /src/ch15/ex15_04/CreateData.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_04/CreateData.java -------------------------------------------------------------------------------- /src/ch15/ex15_05/CreateData.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_05/CreateData.java -------------------------------------------------------------------------------- /src/ch15/ex15_06/CreateData.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_06/CreateData.java -------------------------------------------------------------------------------- /src/ch16/ex16_15/SeletorDeCor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch16/ex16_15/SeletorDeCor.java -------------------------------------------------------------------------------- /src/ch26/ex26_09/Calculator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch26/ex26_09/Calculator.java -------------------------------------------------------------------------------- /src/ch26/ex26_10/ColorSelect.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch26/ex26_10/ColorSelect.java -------------------------------------------------------------------------------- /src/ch27/ex27_12/GradeLine2D.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_12/GradeLine2D.java -------------------------------------------------------------------------------- /src/ch27/ex27_18/ProtetorTela.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_18/ProtetorTela.java -------------------------------------------------------------------------------- /src/ch27/ex27_23/images/baixa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_23/images/baixa.png -------------------------------------------------------------------------------- /src/ch27/ex27_23/images/cima.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_23/images/cima.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/config.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/config.png -------------------------------------------------------------------------------- /src/ch35/ex35_07/CirclePanel.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch35/ex35_07/CirclePanel.java -------------------------------------------------------------------------------- /src/ch08/ex08_04/RectangleTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch08/ex08_04/RectangleTest.java -------------------------------------------------------------------------------- /src/ch11/ex11_19/SomeClassTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch11/ex11_19/SomeClassTest.java -------------------------------------------------------------------------------- /src/ch14/ex14_27/ScannerDeSpam.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_27/ScannerDeSpam.java -------------------------------------------------------------------------------- /src/ch16/ex16_14/ContandoLetras.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch16/ex16_14/ContandoLetras.java -------------------------------------------------------------------------------- /src/ch17/ex17_25/TimingDieRolls.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch17/ex17_25/TimingDieRolls.java -------------------------------------------------------------------------------- /src/ch26/ex26_14/AdivinheNumero.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch26/ex26_14/AdivinheNumero.java -------------------------------------------------------------------------------- /src/ch27/ex27_11/GradeDrawLine.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_11/GradeDrawLine.java -------------------------------------------------------------------------------- /src/ch27/ex27_13/GradeDrawRect.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_13/GradeDrawRect.java -------------------------------------------------------------------------------- /src/ch27/ex27_25/LebreTartaruga.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_25/LebreTartaruga.java -------------------------------------------------------------------------------- /src/ch27/ex27_25/images/Lebre25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_25/images/Lebre25.png -------------------------------------------------------------------------------- /src/ch27/ex27_25/images/cesto25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_25/images/cesto25.png -------------------------------------------------------------------------------- /src/ch27/ex27_27/GraficoDePizza.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_27/GraficoDePizza.java -------------------------------------------------------------------------------- /src/ch27/ex27_32/FontesMaiores.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_32/FontesMaiores.java -------------------------------------------------------------------------------- /src/ch02/ex02_30/SeparatingDigits.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch02/ex02_30/SeparatingDigits.java -------------------------------------------------------------------------------- /src/ch03/ex03_17/HealthProfileTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch03/ex03_17/HealthProfileTest.java -------------------------------------------------------------------------------- /src/ch04/ex04_32/DecimalToBinary.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch04/ex04_32/DecimalToBinary.java -------------------------------------------------------------------------------- /src/ch07/ex07_10/SalesCommissions.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch07/ex07_10/SalesCommissions.java -------------------------------------------------------------------------------- /src/ch07/ex07_29/FibonacciSeries.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch07/ex07_29/FibonacciSeries.java -------------------------------------------------------------------------------- /src/ch12/ex12_02/images/eiffeltower.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch12/ex12_02/images/eiffeltower.jpg -------------------------------------------------------------------------------- /src/ch12/ex12_02/images/greatwall.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch12/ex12_02/images/greatwall.jpg -------------------------------------------------------------------------------- /src/ch14/ex14_03/ComparandoStrings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_03/ComparandoStrings.java -------------------------------------------------------------------------------- /src/ch14/ex14_20/ProtecaoDeCheque.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_20/ProtecaoDeCheque.java -------------------------------------------------------------------------------- /src/ch15/ex15_04/TransactionRecord.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_04/TransactionRecord.java -------------------------------------------------------------------------------- /src/ch15/ex15_05/TransactionRecord.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_05/TransactionRecord.java -------------------------------------------------------------------------------- /src/ch15/ex15_06/TransactionRecord.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_06/TransactionRecord.java -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/log/log.ctrl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/log/log.ctrl -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c10.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c10.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c20.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c20.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c31.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c31.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c41.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c41.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c51.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c51.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c60.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c60.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c71.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c71.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c81.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c81.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c90.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c90.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/ca1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/ca1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/cb1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/cb1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/cc0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/cc0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/cd1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/cd1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/ce1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/ce1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/cf0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/cf0.dat -------------------------------------------------------------------------------- /src/ch26/ex26_15/ExibindoEventos.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch26/ex26_15/ExibindoEventos.java -------------------------------------------------------------------------------- /src/ch27/ex27_08/LinhasAleatorias.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_08/LinhasAleatorias.java -------------------------------------------------------------------------------- /src/ch27/ex27_09/RandomTriangles.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_09/RandomTriangles.java -------------------------------------------------------------------------------- /src/ch27/ex27_10/RandomCharacters.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_10/RandomCharacters.java -------------------------------------------------------------------------------- /src/ch27/ex27_14/GradeRectangle2D.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_14/GradeRectangle2D.java -------------------------------------------------------------------------------- /src/ch27/ex27_19/ProtetorTelaTimer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_19/ProtetorTelaTimer.java -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24infinito.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24infinito.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/bolinha24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/bolinha24.png -------------------------------------------------------------------------------- /src/ch27/ex27_25/images/Bandeira25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_25/images/Bandeira25.png -------------------------------------------------------------------------------- /src/ch27/ex27_25/images/Tartaruga25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_25/images/Tartaruga25.png -------------------------------------------------------------------------------- /src/ch09/ex09_15/HourlyEmployeeTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch09/ex09_15/HourlyEmployeeTest.java -------------------------------------------------------------------------------- /src/ch14/ex14_05/SentencasAleatorias.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_05/SentencasAleatorias.java -------------------------------------------------------------------------------- /src/ch14/ex14_11/PesquisandoStrings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_11/PesquisandoStrings.java -------------------------------------------------------------------------------- /src/ch14/ex14_12/PesquisandoStrings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_12/PesquisandoStrings.java -------------------------------------------------------------------------------- /src/ch14/ex14_23/ConversoesMetricas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_23/ConversoesMetricas.java -------------------------------------------------------------------------------- /src/ch15/ex15_08/PesquisaEntreAlunos.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch15/ex15_08/PesquisaEntreAlunos.java -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c101.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c101.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c111.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c111.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c121.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c121.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c130.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c130.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c141.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c141.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c150.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c150.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c161.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c161.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c171.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c171.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c180.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c180.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c191.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c191.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c1a1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c1a1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c1b1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c1b1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c1c0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c1c0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c1d1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c1d1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c1e0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c1e0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c1f1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c1f1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c200.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c200.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c211.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c211.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c221.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c221.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c230.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c230.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c241.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c241.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c251.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c251.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c260.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c260.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c271.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c271.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c281.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c281.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c290.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c290.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c2a1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c2a1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c2b1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c2b1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c2c1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c2c1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c2d0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c2d0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c2e1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c2e1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c2f0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c2f0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c300.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c300.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c311.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c311.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c321.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c321.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c331.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c331.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c340.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c340.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c351.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c351.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c361.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c361.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c371.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c371.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c380.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c380.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c391.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c391.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c3a1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c3a1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c3b1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c3b1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c3c0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c3c0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c3d1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c3d1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c3e1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c3e1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c3f1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c3f1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c400.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c400.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c411.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c411.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c421.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c421.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c430.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c430.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c441.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c441.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c451.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c451.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c461.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c461.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c470.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c470.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c481.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c481.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c490.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c490.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c4a1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c4a1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c4b0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c4b0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c4c1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c4c1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c4d0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c4d0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c4e1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c4e1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c4f0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c4f0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c501.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c501.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c510.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c510.dat -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/c521.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/seg0/c521.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/log/log.ctrl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/log/log.ctrl -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/log/log3.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/log/log3.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c10.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c10.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c20.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c20.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c31.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c31.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c41.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c41.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c51.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c51.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c60.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c60.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c71.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c71.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c81.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c81.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c90.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c90.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/ca1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/ca1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/cb1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/cb1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/cc0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/cc0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/cd1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/cd1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/ce1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/ce1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/cf0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/cf0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/log/log.ctrl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/log/log.ctrl -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/log/log2.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/log/log2.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c10.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c10.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c20.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c20.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c31.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c31.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c41.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c41.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c51.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c51.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c60.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c60.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c71.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c71.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c81.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c81.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c90.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c90.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/ca1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/ca1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/cb1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/cb1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/cc0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/cc0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/cd1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/cd1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/ce1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/ce1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/cf0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/cf0.dat -------------------------------------------------------------------------------- /src/ch26/ex26_20/ProfessorDigitacao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch26/ex26_20/ProfessorDigitacao.java -------------------------------------------------------------------------------- /src/ch27/ex27_21/ProtetorTelaFormas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_21/ProtetorTelaFormas.java -------------------------------------------------------------------------------- /src/ch27/ex27_23/images/tartaruga23-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_23/images/tartaruga23-1.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavaloazul1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavaloazul1.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavaloazul2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavaloazul2.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavaloverde.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavaloverde.png -------------------------------------------------------------------------------- /src/ch27/ex27_26/DesenhandoEspirais.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_26/DesenhandoEspirais.java -------------------------------------------------------------------------------- /src/ch27/ex27_27/GraficoDePizzaFrame.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_27/GraficoDePizzaFrame.java -------------------------------------------------------------------------------- /src/ch07/ex07_12/DuplicateElimination.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch07/ex07_12/DuplicateElimination.java -------------------------------------------------------------------------------- /src/ch12/ex12_02/images/xrussia_kremlin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch12/ex12_02/images/xrussia_kremlin.jpg -------------------------------------------------------------------------------- /src/ch14/ex14_18/Ex14_18_AnaliseDeTexto.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_18/Ex14_18_AnaliseDeTexto.java -------------------------------------------------------------------------------- /src/ch17/ex17_20/AverageWithIntStream.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch17/ex17_20/AverageWithIntStream.java -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c101.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c101.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c111.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c111.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c121.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c121.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c130.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c130.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c141.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c141.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c150.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c150.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c161.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c161.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c171.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c171.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c180.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c180.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c191.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c191.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c1a1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c1a1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c1b1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c1b1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c1c0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c1c0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c1d1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c1d1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c1e0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c1e0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c1f1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c1f1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c200.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c200.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c211.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c211.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c221.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c221.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c230.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c230.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c241.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c241.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c251.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c251.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c260.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c260.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c271.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c271.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c281.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c281.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c290.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c290.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c2a1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c2a1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c2b1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c2b1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c2c1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c2c1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c2d0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c2d0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c2e1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c2e1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c2f0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c2f0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c300.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c300.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c311.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c311.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c321.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c321.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c331.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c331.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c340.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c340.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c351.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c351.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c361.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c361.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c371.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c371.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c380.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c380.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c391.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c391.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c3a1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c3a1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c3b1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c3b1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c3c0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c3c0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c3d1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c3d1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c3e1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c3e1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c3f1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c3f1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c400.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c400.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c411.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c411.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c421.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c421.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c430.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c430.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c441.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c441.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c451.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c451.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c461.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c461.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c470.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c470.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c481.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c481.dat -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/c490.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/seg0/c490.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c101.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c101.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c111.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c111.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c121.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c121.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c130.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c130.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c141.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c141.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c150.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c150.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c161.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c161.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c171.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c171.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c180.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c180.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c191.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c191.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c1a1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c1a1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c1b1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c1b1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c1c0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c1c0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c1d1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c1d1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c1e0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c1e0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c1f1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c1f1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c200.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c200.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c211.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c211.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c221.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c221.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c230.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c230.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c241.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c241.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c251.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c251.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c260.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c260.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c271.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c271.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c281.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c281.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c290.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c290.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c2a1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c2a1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c2b1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c2b1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c2c1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c2c1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c2d0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c2d0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c2e1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c2e1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c2f0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c2f0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c300.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c300.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c311.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c311.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c321.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c321.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c331.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c331.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c340.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c340.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c351.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c351.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c361.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c361.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c371.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c371.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c380.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c380.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c391.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c391.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c3a1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c3a1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c3b1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c3b1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c3c0.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c3c0.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c3d1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c3d1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c3e1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c3e1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c3f1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c3f1.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c400.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c400.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c411.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c411.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c421.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c421.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c430.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c430.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c441.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c441.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c451.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c451.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c461.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c461.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c470.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c470.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c481.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c481.dat -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/c490.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/seg0/c490.dat -------------------------------------------------------------------------------- /src/ch26/ex26_12/ConversaoDeTemperatura.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch26/ex26_12/ConversaoDeTemperatura.java -------------------------------------------------------------------------------- /src/ch27/ex27_22/ProtetorTelaJava2DAPI.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_22/ProtetorTelaJava2DAPI.java -------------------------------------------------------------------------------- /src/ch27/ex27_23/GraficosTartarugaPanel.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_23/GraficosTartarugaPanel.java -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavaloamarelo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavaloamarelo1.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavaloamarelo2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavaloamarelo2.jpg -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavaloamarelo3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavaloamarelo3.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavalobranco1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavalobranco1.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavalopreto1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavalopreto1.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavalopreto2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavalopreto2.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavalopreto3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavalopreto3.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavalopreto4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavalopreto4.png -------------------------------------------------------------------------------- /src/ch27/ex27_24/images/24cavalovermelho.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_24/images/24cavalovermelho.png -------------------------------------------------------------------------------- /src/ch27/ex27_29/CoresAleatoriasFrame.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_29/CoresAleatoriasFrame.java -------------------------------------------------------------------------------- /src/ch27/ex27_29/CoresAleatoriasPanel.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_29/CoresAleatoriasPanel.java -------------------------------------------------------------------------------- /src/ch03/GUIStudyExercise/Big Ben - London.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch03/GUIStudyExercise/Big Ben - London.jpg -------------------------------------------------------------------------------- /src/ch10/ex10_17/CompensationModel.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_17; 2 | 3 | public interface CompensationModel { 4 | public abstract double earnings(); 5 | } 6 | -------------------------------------------------------------------------------- /src/ch14/ex14_25/GeradorPalavrasCruzadas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_25/GeradorPalavrasCruzadas.java -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/log/logmirror.ctrl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/log/logmirror.ctrl -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/service.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_04/employees/service.properties -------------------------------------------------------------------------------- /src/ch27/ex27_28/SelecionandoFormasFrame.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_28/SelecionandoFormasFrame.java -------------------------------------------------------------------------------- /src/ch27/ex27_28/SelecionandoFormasPanel.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_28/SelecionandoFormasPanel.java -------------------------------------------------------------------------------- /src/ch07/ex07_19/AirlineReservationsSystem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch07/ex07_19/AirlineReservationsSystem.java -------------------------------------------------------------------------------- /src/ch09/ex09_03/BasePlusCommissionEmployee.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch09/ex09_03/BasePlusCommissionEmployee.java -------------------------------------------------------------------------------- /src/ch12/ex12_02/images/usa_statueofliberty.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch12/ex12_02/images/usa_statueofliberty.jpg -------------------------------------------------------------------------------- /src/ch14/ex14_04/ComparandoPartesDeStrings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_04/ComparandoPartesDeStrings.java -------------------------------------------------------------------------------- /src/ch14/ex14_08/TokenizandoNumerosTelefones.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_08/TokenizandoNumerosTelefones.java -------------------------------------------------------------------------------- /src/ch14/ex14_10/LetrasMaiusculasEMinusculas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_10/LetrasMaiusculasEMinusculas.java -------------------------------------------------------------------------------- /src/ch14/ex14_15/ConvertendoIntEmCaracteres.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_15/ConvertendoIntEmCaracteres.java -------------------------------------------------------------------------------- /src/ch16/ex16_16/ContandoPalavrasDuplicadas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch16/ex16_16/ContandoPalavrasDuplicadas.java -------------------------------------------------------------------------------- /src/ch16/ex16_21/AlterandoOrdemPriorityQueue.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch16/ex16_21/AlterandoOrdemPriorityQueue.java -------------------------------------------------------------------------------- /src/ch17/ex17_18/SummingTheTriplesOfTheEven.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch17/ex17_18/SummingTheTriplesOfTheEven.java -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/log/logmirror.ctrl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_07/addressbook/log/logmirror.ctrl -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/log/logmirror.ctrl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch24/ex24_08/addressbook/log/logmirror.ctrl -------------------------------------------------------------------------------- /src/ch27/ex27_06/CirculosConcentricosDrawArc.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_06/CirculosConcentricosDrawArc.java -------------------------------------------------------------------------------- /src/ch27/ex27_30/DialogoJColorChooserFrame.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_30/DialogoJColorChooserFrame.java -------------------------------------------------------------------------------- /src/ch27/ex27_30/DialogoJColorChooserPanel.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_30/DialogoJColorChooserPanel.java -------------------------------------------------------------------------------- /src/ch02/ex02_17/ArithmeticSmallestAndLargest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch02/ex02_17/ArithmeticSmallestAndLargest.java -------------------------------------------------------------------------------- /src/ch03/GUIStudyExercise/Eiffel Tower - Paris.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch03/GUIStudyExercise/Eiffel Tower - Paris.jpg -------------------------------------------------------------------------------- /src/ch03/GUIStudyExercise/Kerry Park - Seattle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch03/GUIStudyExercise/Kerry Park - Seattle.jpg -------------------------------------------------------------------------------- /src/ch14/ex14_19/ImprimindoDatasVariosFormatos.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_19/ImprimindoDatasVariosFormatos.java -------------------------------------------------------------------------------- /src/ch27/ex27_07/CirculosConcentricosEllipse2D.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch27/ex27_07/CirculosConcentricosEllipse2D.java -------------------------------------------------------------------------------- /src/ch04/ex04_39/EnforcingPrivacyWithCryptography.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch04/ex04_39/EnforcingPrivacyWithCryptography.java -------------------------------------------------------------------------------- /src/ch10/ex10_18/CompensationModel.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_18; 2 | 3 | public interface CompensationModel { 4 | 5 | public abstract double earnings(); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/ch16/ex16_20/ClassificandoPalavrasComUmTreeSet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch16/ex16_20/ClassificandoPalavrasComUmTreeSet.java -------------------------------------------------------------------------------- /src/ch26/ex26_13/ModificacaoConversaoDeTemperatura.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch26/ex26_13/ModificacaoConversaoDeTemperatura.java -------------------------------------------------------------------------------- /src/ch03/GUIStudyExercise/Manhattan Bridge - New York.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch03/GUIStudyExercise/Manhattan Bridge - New York.jpg -------------------------------------------------------------------------------- /src/ch14/ex14_13/Ex14_13_TokenizandoEComparandoStrings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_13/Ex14_13_TokenizandoEComparandoStrings.java -------------------------------------------------------------------------------- /src/ch14/ex14_14/Ex14_14_TokenizandoEComparandoStrings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_14/Ex14_14_TokenizandoEComparandoStrings.java -------------------------------------------------------------------------------- /src/ch10/ex10_14/TwoDimensionalShape.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_14; 2 | 3 | public abstract class TwoDimensionalShape extends Shape { 4 | 5 | public abstract double getArea(); 6 | } 7 | -------------------------------------------------------------------------------- /src/ch14/ex14_09/ExibindoUmaFraseComAsPalavrasInvertidas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guto-alves/java-how-to-program-11e/HEAD/src/ch14/ex14_09/ExibindoUmaFraseComAsPalavrasInvertidas.java -------------------------------------------------------------------------------- /src/ch09/ex09_16/CompensationModel.java: -------------------------------------------------------------------------------- 1 | package ch09.ex09_16; 2 | 3 | public class CompensationModel { 4 | 5 | public double earnings() { 6 | return 0.0; 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/ch11/ex11_16/ExceptionB.java: -------------------------------------------------------------------------------- 1 | package ch11.ex11_16; 2 | 3 | public class ExceptionB extends ExceptionA { 4 | 5 | public ExceptionB(String message) { 6 | super(message); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/ch11/ex11_16/ExceptionC.java: -------------------------------------------------------------------------------- 1 | package ch11.ex11_16; 2 | 3 | public class ExceptionC extends ExceptionB { 4 | 5 | public ExceptionC(String message) { 6 | super(message); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/ch11/ex11_17/ExceptionB.java: -------------------------------------------------------------------------------- 1 | package ch11.ex11_17; 2 | 3 | public class ExceptionB extends ExceptionA { 4 | 5 | public ExceptionB(String message) { 6 | super(message); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/ch10/ex10_14/ThreeDimensionalShape.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_14; 2 | 3 | public abstract class ThreeDimensionalShape extends Shape { 4 | 5 | public abstract double getArea(); 6 | 7 | public abstract double getVolume(); 8 | } 9 | -------------------------------------------------------------------------------- /src/ch28/ex28_13/FileReaderServerTest.java: -------------------------------------------------------------------------------- 1 | package ch28.ex28_13; 2 | 3 | public class FileReaderServerTest { 4 | 5 | public static void main(String[] args) { 6 | FileReaderServer application = new FileReaderServer(); 7 | application.runServer(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/ch11/ex11_16/ExceptionA.java: -------------------------------------------------------------------------------- 1 | package ch11.ex11_16; 2 | 3 | public class ExceptionA extends Exception { 4 | 5 | public ExceptionA() { 6 | super("Exception A"); 7 | } 8 | 9 | public ExceptionA(String message) { 10 | super(message); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ch11/ex11_17/ExceptionA.java: -------------------------------------------------------------------------------- 1 | package ch11.ex11_17; 2 | 3 | public class ExceptionA extends Exception { 4 | 5 | public ExceptionA() { 6 | super("Exception A"); 7 | } 8 | 9 | public ExceptionA(String message) { 10 | super(message); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ch28/ex28_14/FileReaderServerTest.java: -------------------------------------------------------------------------------- 1 | package ch28.ex28_14; 2 | 3 | public class FileReaderServerTest { 4 | 5 | public static void main(String[] args) { 6 | FileReaderServer application = new FileReaderServer(); 7 | application.runServer(); 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/ch16/ex16_19/NumeroPrimosEFatoresPrimos.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Objetivo: 3 | * 4 | * Autor: Gustavo Alves 5 | */ 6 | 7 | package ch16.ex16_19; 8 | 9 | public class NumeroPrimosEFatoresPrimos { 10 | 11 | public static void main(String[] args) { 12 | 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/ch28/ex28_13/FileReaderClientTest.java: -------------------------------------------------------------------------------- 1 | package ch28.ex28_13; 2 | 3 | public class FileReaderClientTest { 4 | 5 | public static void main(String[] args) { 6 | FileReaderClient application = new FileReaderClient("localhost"); // or 127.0.0.1 7 | application.run(); 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/ch16/ex16_18/CopiandoEInvertendoLinkedList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Objetivo: 3 | * 4 | * Autor: Gustavo Alves 5 | */ 6 | 7 | package ch16.ex16_18; 8 | 9 | public class CopiandoEInvertendoLinkedList { 10 | 11 | public static void main(String[] args) { 12 | 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/ch08/ex08_13/IntegerSetTest.java: -------------------------------------------------------------------------------- 1 | package ch08.ex08_13; 2 | 3 | public class IntegerSetTest { 4 | 5 | public static void main(String[] args) { 6 | IntegerSet integerSet = new IntegerSet(); 7 | 8 | for (boolean n : integerSet.getSet()) 9 | System.out.println(n); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/ch21/ex21_06/EmptyListException.java: -------------------------------------------------------------------------------- 1 | package ch21.ex21_06; 2 | 3 | public class EmptyListException extends RuntimeException { 4 | 5 | public EmptyListException() { 6 | this("List"); 7 | } 8 | 9 | public EmptyListException(String name) { 10 | super(name + " is empty"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ch21/ex21_07/EmptyListException.java: -------------------------------------------------------------------------------- 1 | package ch21.ex21_07; 2 | 3 | public class EmptyListException extends RuntimeException { 4 | 5 | public EmptyListException() { 6 | this("List"); 7 | } 8 | 9 | public EmptyListException(String name) { 10 | super(name + " is empty"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ch21/ex21_08/EmptyListException.java: -------------------------------------------------------------------------------- 1 | package ch21.ex21_08; 2 | 3 | public class EmptyListException extends RuntimeException { 4 | 5 | public EmptyListException() { 6 | this("List"); 7 | } 8 | 9 | public EmptyListException(String name) { 10 | super(name + " is empty"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ch21/ex21_09/EmptyListException.java: -------------------------------------------------------------------------------- 1 | package ch21.ex21_09; 2 | 3 | public class EmptyListException extends RuntimeException { 4 | 5 | public EmptyListException() { 6 | this("List"); 7 | } 8 | 9 | public EmptyListException(String name) { 10 | super(name + " is empty"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ch21/ex21_20/EmptyListException.java: -------------------------------------------------------------------------------- 1 | package ch21.ex21_20; 2 | 3 | public class EmptyListException extends RuntimeException { 4 | 5 | public EmptyListException() { 6 | this("List"); 7 | } 8 | 9 | public EmptyListException(String name) { 10 | super(name + " is empty"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ch21/ex21_10/EmptyListException.java: -------------------------------------------------------------------------------- 1 | 2 | package ch21.ex21_10; 3 | 4 | public class EmptyListException extends RuntimeException { 5 | 6 | public EmptyListException() { 7 | this("List"); 8 | } 9 | 10 | public EmptyListException(String name) { 11 | super(name + " is empty"); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/ch08/ex08_15/DateTest.java: -------------------------------------------------------------------------------- 1 | package ch08.ex08_15; 2 | 3 | public class DateTest { 4 | 5 | public static void main(String[] args) { 6 | Date date = new Date("March", 27, 2000); 7 | 8 | date.display(Date.MM_DD_YYYY); 9 | date.display(Date.MONTH_DD_YYYY); 10 | date.display(Date.DDD_YYYY); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ch08/ex08_10/TrafficLight.java: -------------------------------------------------------------------------------- 1 | package ch08.ex08_10; 2 | 3 | public enum TrafficLight { 4 | RED(2), GREEN(3), YELLOW(1); 5 | 6 | private int duration; 7 | 8 | TrafficLight(int duration) { 9 | this.duration = duration; 10 | } 11 | 12 | public int getDuration() { 13 | return duration; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/ch11/ex11_19/SomeClass.java: -------------------------------------------------------------------------------- 1 | package ch11.ex11_19; 2 | 3 | public class SomeClass { 4 | private int number; 5 | 6 | public SomeClass(int number) throws Exception { 7 | if (number < 0) { 8 | throw new Exception("Number must be greater than or equal to zero"); 9 | } 10 | 11 | this.number = number; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/ch20/ex20_05/InvalidSubscriptException.java: -------------------------------------------------------------------------------- 1 | package ch20.ex20_05; 2 | 3 | public class InvalidSubscriptException extends RuntimeException { 4 | 5 | public InvalidSubscriptException() { 6 | this("Subscript Exception"); 7 | } 8 | 9 | public InvalidSubscriptException(String message) { 10 | super(message); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ch03/ex03_14/DateTest.java: -------------------------------------------------------------------------------- 1 | package ch03.ex03_14; 2 | 3 | public class DateTest { 4 | 5 | public static void main(String[] args) { 6 | Date date = new Date(3, 27, 2000); 7 | 8 | date.displayDate(); 9 | 10 | date.setMonth(12); 11 | date.setDay(16); 12 | date.setYear(2019); 13 | 14 | date.displayDate(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/ch08/ex08_13/IntegerSet.java: -------------------------------------------------------------------------------- 1 | package ch08.ex08_13; 2 | 3 | public class IntegerSet { 4 | public static final int SET_LENGTH = 101; 5 | private boolean[] set = new boolean[SET_LENGTH]; 6 | 7 | public boolean[] getSet() { 8 | return set; 9 | } 10 | 11 | public void setSet(boolean[] set) { 12 | this.set = set; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/ch08/ex08_10/TrafficLightTest.java: -------------------------------------------------------------------------------- 1 | package ch08.ex08_10; 2 | 3 | public class TrafficLightTest { 4 | 5 | public static void main(String[] args) { 6 | System.out.println("Traffic Light:"); 7 | 8 | for (TrafficLight light : TrafficLight.values()) { 9 | System.out.printf("%-6s %d%n", light, light.getDuration()); 10 | } 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/ch07/ex07_37/ComputerSimulatorTest.java: -------------------------------------------------------------------------------- 1 | package ch07.ex07_37; 2 | 3 | public class ComputerSimulatorTest { 4 | 5 | public static void main(String[] args) { 6 | ComputerSimulator computerSimulator = new ComputerSimulator(); 7 | 8 | computerSimulator.readInstructions(); 9 | computerSimulator.runSML(); 10 | computerSimulator.printDump(); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/ch10/ex10_17/SalariedCompensationModel.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_17; 2 | 3 | public class SalariedCompensationModel implements CompensationModel { 4 | private double weeklySalary; 5 | 6 | public SalariedCompensationModel(double weeklySalary) { 7 | this.weeklySalary = weeklySalary; 8 | } 9 | 10 | @Override 11 | public double earnings() { 12 | return weeklySalary; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/ch10/ex10_18/SalariedCompensationModel.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_18; 2 | 3 | public class SalariedCompensationModel implements CompensationModel { 4 | private double weeklySalary; 5 | 6 | public SalariedCompensationModel(double weeklySalary) { 7 | this.weeklySalary = weeklySalary; 8 | } 9 | 10 | @Override 11 | public double earnings() { 12 | return weeklySalary; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/ch21/ex21_07/ListTest.java: -------------------------------------------------------------------------------- 1 | package ch21.ex21_07; 2 | 3 | import java.security.SecureRandom; 4 | 5 | public class ListTest { 6 | public static void main(String[] args) { 7 | SecureRandom generator = new SecureRandom(); 8 | 9 | SortedList list = new SortedList<>(); 10 | 11 | for (int i = 0; i < 25; i++) 12 | list.insert(generator.nextInt(101)); 13 | 14 | list.print(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/ch03/ex03_16/HeartRatesTest.java: -------------------------------------------------------------------------------- 1 | package ch03.ex03_16; 2 | 3 | public class HeartRatesTest { 4 | 5 | public static void main(String[] args) { 6 | HeartRates heartRates = new HeartRates("Gustavo", "Alves", 3, 27, 2000); 7 | 8 | System.out.printf("Maximum heart rate: %s bpm%n", heartRates.getMaximumHeartRate()); 9 | System.out.printf("Targe heart rate: %s bpm%n", heartRates.getTargetHeartRate()); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/ch05/ex05_12/ProductOfOddintegers.java: -------------------------------------------------------------------------------- 1 | /* 5.12 (Calculating the Product of Odd Integers) Write an application that 2 | calculates the product of the odd integers from 1 to 15. */ 3 | 4 | package ch05.ex05_12; 5 | 6 | public class ProductOfOddintegers { 7 | 8 | public static void main(String[] args) { 9 | int product = 1; 10 | 11 | for (int i = 1; i <= 15; i += 2) 12 | product *= i; 13 | 14 | System.out.println(product); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/ch08/ex08_11/ComplexTest.java: -------------------------------------------------------------------------------- 1 | package ch08.ex08_11; 2 | 3 | public class ComplexTest { 4 | 5 | public static void main(String[] args) { 6 | Complex complex1 = new Complex(4, 5); 7 | Complex complex2 = new Complex(-1, 3); 8 | 9 | System.out.printf("%s + %s = %s%n%n", complex1, complex2, Complex.add(complex1, complex2)); 10 | System.out.printf("%s - %s = %s%n", complex1, complex2, Complex.subtract(complex1, complex2)); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/ch08/ex08_17/HugeIntegerTest.java: -------------------------------------------------------------------------------- 1 | package ch08.ex08_17; 2 | 3 | public class HugeIntegerTest { 4 | 5 | public static void main(String[] args) { 6 | HugeInteger integer1 = new HugeInteger("5"); 7 | HugeInteger integer2 = new HugeInteger("5"); 8 | 9 | System.out.printf("%s + %s = %s%n", integer1, integer2, integer1.add(integer2)); 10 | System.out.printf("%s - %s = %s%n", integer1, integer2, integer1.subtract(integer2)); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/ch21/ex21_08/ListTest.java: -------------------------------------------------------------------------------- 1 | package ch21.ex21_08; 2 | 3 | public class ListTest { 4 | public static void main(String[] args) { 5 | SortedList list1 = new SortedList<>(); 6 | list1.insert(1); 7 | list1.insert(2); 8 | list1.insert(3); 9 | list1.print(); 10 | 11 | SortedList list2 = new SortedList<>(); 12 | list2.insert(4); 13 | list2.insert(5); 14 | list2.insert(6); 15 | 16 | list1.merge(list2); 17 | list1.print(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE Addresses; 2 | 3 | CREATE TABLE Addresses 4 | ( 5 | AddressID INT NOT NULL GENERATED ALWAYS AS IDENTITY, 6 | FirstName VARCHAR (50) NOT NULL, 7 | LastName VARCHAR (50) NOT NULL, 8 | Email VARCHAR (254) NOT NULL, 9 | PhoneNumber VARCHAR (15) NOT NULL 10 | ); 11 | 12 | INSERT INTO Addresses (FirstName,LastName,Email,PhoneNumber) 13 | VALUES ('Mike','Green','demo1@deitel.com','555-5555'), 14 | ('Mary','Brown','demo2@deitel.com','555-1234'); -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE Addresses; 2 | 3 | CREATE TABLE Addresses 4 | ( 5 | AddressID INT NOT NULL GENERATED ALWAYS AS IDENTITY, 6 | FirstName VARCHAR (50) NOT NULL, 7 | LastName VARCHAR (50) NOT NULL, 8 | Email VARCHAR (254) NOT NULL, 9 | PhoneNumber VARCHAR (15) NOT NULL 10 | ); 11 | 12 | INSERT INTO Addresses (FirstName,LastName,Email,PhoneNumber) 13 | VALUES ('Mike','Green','demo1@deitel.com','555-5555'), 14 | ('Mary','Brown','demo2@deitel.com','555-1234'); -------------------------------------------------------------------------------- /src/ch29/ex29_02/addressbook.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE Addresses; 2 | 3 | CREATE TABLE Addresses 4 | ( 5 | AddressID INT NOT NULL GENERATED ALWAYS AS IDENTITY, 6 | FirstName VARCHAR (15) NOT NULL, 7 | LastName VARCHAR (30) NOT NULL, 8 | Email VARCHAR (30) NOT NULL, 9 | PhoneNumber VARCHAR (15) NOT NULL, 10 | PRIMARY KEY (AddressID) 11 | ); 12 | 13 | INSERT INTO Addresses (FirstName,LastName,Email,PhoneNumber) 14 | VALUES ('Mike','Green','demo1@deitel.com','555-5555'), 15 | ('Mary','Brown','demo2@deitel.com','555-1234'); -------------------------------------------------------------------------------- /src/ch29/ex29_03/addressbook.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE Addresses; 2 | 3 | CREATE TABLE Addresses 4 | ( 5 | AddressID INT NOT NULL GENERATED ALWAYS AS IDENTITY, 6 | FirstName VARCHAR (15) NOT NULL, 7 | LastName VARCHAR (30) NOT NULL, 8 | Email VARCHAR (30) NOT NULL, 9 | PhoneNumber VARCHAR (15) NOT NULL, 10 | PRIMARY KEY (AddressID) 11 | ); 12 | 13 | INSERT INTO Addresses (FirstName,LastName,Email,PhoneNumber) 14 | VALUES ('Mike','Green','demo1@deitel.com','555-5555'), 15 | ('Mary','Brown','demo2@deitel.com','555-1234'); -------------------------------------------------------------------------------- /src/ch09/ex09_16/CommissionCompensationModel.java: -------------------------------------------------------------------------------- 1 | package ch09.ex09_16; 2 | 3 | public class CommissionCompensationModel extends CompensationModel { 4 | private double grossSales; 5 | private double commissionRate; 6 | 7 | public CommissionCompensationModel(double grossSales, double commissionRate) { 8 | this.grossSales = grossSales; 9 | this.commissionRate = commissionRate; 10 | } 11 | 12 | @Override 13 | public double earnings() { 14 | return grossSales * commissionRate; 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/ch10/ex10_17/CommissionCompensationModel.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_17; 2 | 3 | public class CommissionCompensationModel implements CompensationModel { 4 | private double grossSales; 5 | private double commissionRate; 6 | 7 | public CommissionCompensationModel(double grossSales, double commissionRate) { 8 | this.grossSales = grossSales; 9 | this.commissionRate = commissionRate; 10 | } 11 | 12 | @Override 13 | public double earnings() { 14 | return grossSales * commissionRate; 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/ch23/ex23_10/RebatingTheBall.java: -------------------------------------------------------------------------------- 1 | 2 | package ch23.ex23_10; 3 | 4 | import javax.swing.JFrame; 5 | 6 | public class RebatingTheBall { 7 | 8 | public static void main(String[] args) { 9 | JFrame application = new JFrame("Rebating the Ball"); 10 | application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 11 | 12 | application.add(new RebatingTheBallJPanel()); 13 | 14 | application.setSize(400, 400); 15 | application.setLocationRelativeTo(null); 16 | application.setVisible(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/ch10/ex10_17/HourlyCompensationModel.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_17; 2 | 3 | public class HourlyCompensationModel implements CompensationModel { 4 | private double wage; 5 | private double hours; 6 | 7 | public HourlyCompensationModel(double wage, double hours) { 8 | this.wage = wage; 9 | this.hours = hours; 10 | } 11 | 12 | @Override 13 | public double earnings() { 14 | if (hours <= 40) { // no overtime 15 | return wage * hours; 16 | } else { 17 | return 40 * wage + (hours - 40) * wage * 1.5; 18 | } 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/ch17/ex17_23/Person.java: -------------------------------------------------------------------------------- 1 | package ch17.ex17_23; 2 | 3 | public class Person { 4 | private String firstName; 5 | private String lastName; 6 | 7 | public Person(String firstName, String lastName) { 8 | this.firstName = firstName; 9 | this.lastName = lastName; 10 | } 11 | 12 | public String getFirstName() { 13 | return firstName; 14 | } 15 | 16 | public String getLastName() { 17 | return lastName; 18 | } 19 | 20 | @Override 21 | public String toString() { 22 | return String.format("%s %s", firstName, lastName); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/ch07/ex07_30/DeckOfCardsTest.java: -------------------------------------------------------------------------------- 1 | // Fig. 7.11: DeckOfCardsTest.java 2 | // Card shuffling and dealing. 3 | 4 | package ch07.ex07_30; 5 | 6 | public class DeckOfCardsTest { 7 | 8 | public static void main(String[] args) { 9 | DeckOfCards myDeckOfCards = new DeckOfCards(); 10 | myDeckOfCards.shuffle(); // place Cards in random order 11 | 12 | // print all 52 Cards in the order in which they are dealt 13 | for (int i = 1; i <= 5; i++) { 14 | // deal and display a Card 15 | System.out.printf("%-19s", myDeckOfCards.dealCard()); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/ch21/ex21_10/StackComposition.java: -------------------------------------------------------------------------------- 1 | package ch21.ex21_10; 2 | 3 | public class StackComposition { 4 | private List stackList; 5 | 6 | public StackComposition() { 7 | stackList = new List("stack"); 8 | } 9 | 10 | public void push(T object) { 11 | stackList.insertAtFront(object); 12 | } 13 | 14 | public T pop() throws EmptyListException { 15 | return stackList.removeFromFront(); 16 | } 17 | 18 | public boolean isEmpty() { 19 | return stackList.isEmpty(); 20 | } 21 | 22 | public void print() { 23 | stackList.print(); 24 | } 25 | } -------------------------------------------------------------------------------- /src/ch23/ex23_11/RebatingTheBall.java: -------------------------------------------------------------------------------- 1 | 2 | package ch23.ex23_11; 3 | 4 | import javax.swing.JFrame; 5 | 6 | public class RebatingTheBall { 7 | 8 | public static void main(String[] args) { 9 | JFrame application = new JFrame("Rebating the Ball"); 10 | application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 11 | 12 | RebatingTheBallJPanel ballsJPanel = new RebatingTheBallJPanel(20); 13 | application.add(ballsJPanel); 14 | 15 | application.setSize(400, 400); 16 | application.setLocationRelativeTo(null); 17 | application.setVisible(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/log/README_DO_NOT_TOUCH_FILES.txt: -------------------------------------------------------------------------------- 1 | 2 | # ************************************************************************* 3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! *** 4 | # *** FILES IN THIS DIRECTORY ARE USED BY THE DERBY DATABASE RECOVERY *** 5 | # *** SYSTEM. EDITING, ADDING, OR DELETING FILES IN THIS DIRECTORY *** 6 | # *** WILL CAUSE THE DERBY RECOVERY SYSTEM TO FAIL, LEADING TO *** 7 | # *** NON-RECOVERABLE CORRUPT DATABASES. *** 8 | # ************************************************************************* -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/seg0/README_DO_NOT_TOUCH_FILES.txt: -------------------------------------------------------------------------------- 1 | 2 | # ************************************************************************* 3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! *** 4 | # *** FILES IN THIS DIRECTORY ARE USED BY THE DERBY DATABASE TO STORE *** 5 | # *** USER AND SYSTEM DATA. EDITING, ADDING, OR DELETING FILES IN THIS *** 6 | # *** DIRECTORY WILL CORRUPT THE ASSOCIATED DERBY DATABASE AND MAKE *** 7 | # *** IT NON-RECOVERABLE. *** 8 | # ************************************************************************* -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/log/README_DO_NOT_TOUCH_FILES.txt: -------------------------------------------------------------------------------- 1 | 2 | # ************************************************************************* 3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! *** 4 | # *** FILES IN THIS DIRECTORY ARE USED BY THE DERBY DATABASE RECOVERY *** 5 | # *** SYSTEM. EDITING, ADDING, OR DELETING FILES IN THIS DIRECTORY *** 6 | # *** WILL CAUSE THE DERBY RECOVERY SYSTEM TO FAIL, LEADING TO *** 7 | # *** NON-RECOVERABLE CORRUPT DATABASES. *** 8 | # ************************************************************************* -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/log/README_DO_NOT_TOUCH_FILES.txt: -------------------------------------------------------------------------------- 1 | 2 | # ************************************************************************* 3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! *** 4 | # *** FILES IN THIS DIRECTORY ARE USED BY THE DERBY DATABASE RECOVERY *** 5 | # *** SYSTEM. EDITING, ADDING, OR DELETING FILES IN THIS DIRECTORY *** 6 | # *** WILL CAUSE THE DERBY RECOVERY SYSTEM TO FAIL, LEADING TO *** 7 | # *** NON-RECOVERABLE CORRUPT DATABASES. *** 8 | # ************************************************************************* -------------------------------------------------------------------------------- /src/ch10/ex10_14/Square.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_14; 2 | 3 | public class Square extends TwoDimensionalShape { 4 | private double side; 5 | 6 | public Square(double side) { 7 | this.side = side; 8 | } 9 | 10 | public double getSide() { 11 | return side; 12 | } 13 | 14 | public void setSide(double side) { 15 | this.side = side; 16 | } 17 | 18 | @Override 19 | public double getArea() { 20 | return side * side; 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return String.format("%s: %n%s = %.2f", "Square", "size", getSide()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/seg0/README_DO_NOT_TOUCH_FILES.txt: -------------------------------------------------------------------------------- 1 | 2 | # ************************************************************************* 3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! *** 4 | # *** FILES IN THIS DIRECTORY ARE USED BY THE DERBY DATABASE TO STORE *** 5 | # *** USER AND SYSTEM DATA. EDITING, ADDING, OR DELETING FILES IN THIS *** 6 | # *** DIRECTORY WILL CORRUPT THE ASSOCIATED DERBY DATABASE AND MAKE *** 7 | # *** IT NON-RECOVERABLE. *** 8 | # ************************************************************************* -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/seg0/README_DO_NOT_TOUCH_FILES.txt: -------------------------------------------------------------------------------- 1 | 2 | # ************************************************************************* 3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! *** 4 | # *** FILES IN THIS DIRECTORY ARE USED BY THE DERBY DATABASE TO STORE *** 5 | # *** USER AND SYSTEM DATA. EDITING, ADDING, OR DELETING FILES IN THIS *** 6 | # *** DIRECTORY WILL CORRUPT THE ASSOCIATED DERBY DATABASE AND MAKE *** 7 | # *** IT NON-RECOVERABLE. *** 8 | # ************************************************************************* -------------------------------------------------------------------------------- /src/ch18/ex18_22/MazeTest.java: -------------------------------------------------------------------------------- 1 | package ch18.ex18_22; 2 | 3 | public class MazeTest { 4 | 5 | public static void main(String[] args) { 6 | MazeGenerator mazeGenerator = new MazeGenerator(25, 20); 7 | 8 | System.out.println(mazeGenerator); 9 | 10 | MazeSolver solver = new MazeSolver(mazeGenerator); 11 | 12 | if (solver.isExit()) { 13 | for (char[] cs : solver.getMazeSolved()) { 14 | for (char i : cs) 15 | System.out.print(i + " "); 16 | 17 | System.out.println(); 18 | } 19 | 20 | } else 21 | System.out.println("It have not a exit!"); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/ch07/ex07_16/Foreach.java: -------------------------------------------------------------------------------- 1 | /* 7.16 (Using the Enhanced for Statement) Write an application that uses 2 | an enhanced for statement to sum the double values passed by the 3 | command-line arguments. [Hint:Use the static method 4 | parseDouble of class Double to convert a String to a double 5 | value.] */ 6 | 7 | package ch07.ex07_16; 8 | 9 | public class Foreach { 10 | 11 | public static void main(String[] args) { 12 | double sum = 0.0; 13 | 14 | for (String arg : args) { 15 | sum += Double.parseDouble(arg); 16 | } 17 | 18 | System.out.printf("Sum is %.2f%n", sum); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/ch10/GUIAndGraphicsCaseStudyExercises/ex10_01/MyLine.java: -------------------------------------------------------------------------------- 1 | package ch10.GUIAndGraphicsCaseStudyExercises.ex10_01; 2 | 3 | import javafx.scene.canvas.GraphicsContext; 4 | import javafx.scene.paint.Color; 5 | 6 | public class MyLine extends MyShape { 7 | 8 | public MyLine() { 9 | super(); 10 | } 11 | 12 | public MyLine(double x1, double y1, double x2, double y2, Color strokeColor) { 13 | super(x1, y1, x2, y2, strokeColor); 14 | } 15 | 16 | @Override 17 | public void draw(GraphicsContext gc) { 18 | gc.setStroke(getStrokeColor()); 19 | gc.strokeLine(getX1(), getY1(), getX2(), getY2()); 20 | } 21 | } -------------------------------------------------------------------------------- /src/ch10/GUIAndGraphicsCaseStudyExercises/ex10_02/MyLine.java: -------------------------------------------------------------------------------- 1 | package ch10.GUIAndGraphicsCaseStudyExercises.ex10_02; 2 | 3 | import javafx.scene.canvas.GraphicsContext; 4 | import javafx.scene.paint.Color; 5 | 6 | public class MyLine extends MyShape { 7 | 8 | public MyLine() { 9 | super(); 10 | } 11 | 12 | public MyLine(double x1, double y1, double x2, double y2, Color strokeColor) { 13 | super(x1, y1, x2, y2, strokeColor); 14 | } 15 | 16 | @Override 17 | public void draw(GraphicsContext gc) { 18 | gc.setStroke(getStrokeColor()); 19 | gc.strokeLine(getX1(), getY1(), getX2(), getY2()); 20 | } 21 | } -------------------------------------------------------------------------------- /src/ch09/ex09_16/BasePlusCommissionCompensationModel.java: -------------------------------------------------------------------------------- 1 | package ch09.ex09_16; 2 | 3 | public class BasePlusCommissionCompensationModel extends CompensationModel { 4 | private double grossSales; 5 | private double commissionRate; 6 | private double baseSalary; 7 | 8 | public BasePlusCommissionCompensationModel(double grossSales, double commissionRate, double baseSalary) { 9 | this.grossSales = grossSales; 10 | this.commissionRate = commissionRate; 11 | this.baseSalary = baseSalary; 12 | } 13 | 14 | @Override 15 | public double earnings() { 16 | return baseSalary + grossSales * commissionRate; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/ch10/ex10_17/BasePlusCommissionCompensationModel.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_17; 2 | 3 | public class BasePlusCommissionCompensationModel implements CompensationModel { 4 | private double grossSales; 5 | private double commissionRate; 6 | private double baseSalary; 7 | 8 | public BasePlusCommissionCompensationModel(double grossSales, double commissionRate, double baseSalary) { 9 | this.grossSales = grossSales; 10 | this.commissionRate = commissionRate; 11 | this.baseSalary = baseSalary; 12 | } 13 | 14 | @Override 15 | public double earnings() { 16 | return baseSalary + grossSales * commissionRate; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/ch11/ex11_20/RethrowingExceptions.java: -------------------------------------------------------------------------------- 1 | package ch11.ex11_20; 2 | 3 | public class RethrowingExceptions { 4 | 5 | public static void main(String[] args) { 6 | try { 7 | someMethod(); 8 | } catch (Exception e) { 9 | e.printStackTrace(); 10 | } 11 | } 12 | 13 | public static void someMethod() throws Exception { 14 | try { 15 | someMethod2(); 16 | } catch (Exception e) { 17 | throw new Exception("Exception thrown in someMethod"); 18 | } 19 | } 20 | 21 | public static void someMethod2() throws Exception { 22 | throw new Exception("Exception thrown in someMethod2"); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/ch10/ex10_14/Circle.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_14; 2 | 3 | public class Circle extends TwoDimensionalShape { 4 | private double radius; 5 | 6 | public Circle(double radius) { 7 | this.radius = radius; 8 | } 9 | 10 | public double getRadius() { 11 | return radius; 12 | } 13 | 14 | public void setRadius(double radius) { 15 | this.radius = radius; 16 | } 17 | 18 | @Override 19 | public double getArea() { 20 | return Math.PI * Math.pow(radius, 2); 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return String.format("%s: %n%s = %.2f", "Circle", "radius", getRadius()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ch09/ex09_16/Test.java: -------------------------------------------------------------------------------- 1 | package ch09.ex09_16; 2 | 3 | public class Test { 4 | 5 | public static void main(String[] args) { 6 | Employee employee1 = new Employee("Bob", "Lewis", "333-33-3333", new CommissionCompensationModel(5000, .04)); 7 | Employee employee2 = new Employee("Sue", "Jones", "222-22-2222", 8 | new BasePlusCommissionCompensationModel(10000, .06, 200)); 9 | 10 | System.out.printf("%s%n%n", employee1); 11 | System.out.printf("%s%n%n", employee2); 12 | 13 | employee2.setCompensationModel(new CommissionCompensationModel(10000, .06)); 14 | 15 | System.out.printf("%s%n%n", employee2); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/ch17/ex17_10/Chapter2Paragraph.txt: -------------------------------------------------------------------------------- 1 | This chapter introduces Java application programming 2 | We begin with examples of programs that display output 3 | messages on the screen We then present a program that 4 | obtains inputs two numbers from a user calculates 5 | their sum and displays the result You'll learn how to 6 | instruct the computer to perform arithmetic calculations 7 | and save their results for later use The last example 8 | demonstrates how to make decisions The application 9 | compares two numbers then displays messages that show 10 | the comparison results You'll use the JDK commandline 11 | tools to compile and run this chapter's programs -------------------------------------------------------------------------------- /src/ch24/ex24_04/employees/README_DO_NOT_TOUCH_FILES.txt: -------------------------------------------------------------------------------- 1 | 2 | # ************************************************************************* 3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! *** 4 | # *** FILES IN THIS DIRECTORY AND SUBDIRECTORIES CONSTITUTE A DERBY *** 5 | # *** DATABASE, WHICH INCLUDES THE DATA (USER AND SYSTEM) AND THE *** 6 | # *** FILES NECESSARY FOR DATABASE RECOVERY. *** 7 | # *** EDITING, ADDING, OR DELETING ANY OF THESE FILES MAY CAUSE DATA *** 8 | # *** CORRUPTION AND LEAVE THE DATABASE IN A NON-RECOVERABLE STATE. *** 9 | # ************************************************************************* -------------------------------------------------------------------------------- /src/ch24/ex24_07/addressbook/README_DO_NOT_TOUCH_FILES.txt: -------------------------------------------------------------------------------- 1 | 2 | # ************************************************************************* 3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! *** 4 | # *** FILES IN THIS DIRECTORY AND SUBDIRECTORIES CONSTITUTE A DERBY *** 5 | # *** DATABASE, WHICH INCLUDES THE DATA (USER AND SYSTEM) AND THE *** 6 | # *** FILES NECESSARY FOR DATABASE RECOVERY. *** 7 | # *** EDITING, ADDING, OR DELETING ANY OF THESE FILES MAY CAUSE DATA *** 8 | # *** CORRUPTION AND LEAVE THE DATABASE IN A NON-RECOVERABLE STATE. *** 9 | # ************************************************************************* -------------------------------------------------------------------------------- /src/ch24/ex24_08/addressbook/README_DO_NOT_TOUCH_FILES.txt: -------------------------------------------------------------------------------- 1 | 2 | # ************************************************************************* 3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! *** 4 | # *** FILES IN THIS DIRECTORY AND SUBDIRECTORIES CONSTITUTE A DERBY *** 5 | # *** DATABASE, WHICH INCLUDES THE DATA (USER AND SYSTEM) AND THE *** 6 | # *** FILES NECESSARY FOR DATABASE RECOVERY. *** 7 | # *** EDITING, ADDING, OR DELETING ANY OF THESE FILES MAY CAUSE DATA *** 8 | # *** CORRUPTION AND LEAVE THE DATABASE IN A NON-RECOVERABLE STATE. *** 9 | # ************************************************************************* -------------------------------------------------------------------------------- /src/ch12/ex12_03/Welcome.java: -------------------------------------------------------------------------------- 1 | package ch12.ex12_03; 2 | 3 | import javafx.application.Application; 4 | import javafx.fxml.FXMLLoader; 5 | import javafx.scene.Parent; 6 | import javafx.scene.Scene; 7 | import javafx.stage.Stage; 8 | 9 | public class Welcome extends Application { 10 | 11 | public static void main(String[] args) { 12 | launch(args); 13 | } 14 | 15 | @Override 16 | public void start(Stage stage) throws Exception { 17 | Parent root = FXMLLoader.load(getClass().getResource("Welcome.fxml")); 18 | 19 | Scene scene = new Scene(root); 20 | stage.setTitle("Welcome"); 21 | stage.setScene(scene); 22 | stage.show(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/ch21/ex21_09/ReverseCopy.java: -------------------------------------------------------------------------------- 1 | package ch21.ex21_09; 2 | 3 | public class ReverseCopy { 4 | 5 | public static List reverseCopy(List list) { 6 | List reverseList = new List<>(); 7 | 8 | for (int i = 0; i < list.size(); i++) 9 | reverseList.insertAtFront(list.get(i)); 10 | 11 | return reverseList; 12 | } 13 | 14 | public static void main(String[] args) { 15 | List list = new List<>(); 16 | 17 | list.insertAtBack("green"); 18 | list.insertAtBack("yellow"); 19 | list.insertAtBack("blue"); 20 | list.print(); 21 | 22 | List reverseList = reverseCopy(list); 23 | reverseList.print(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ch04/ex04_38/FactorialA.java: -------------------------------------------------------------------------------- 1 | /* 1. Write an application that reads a nonnegative integer and 2 | computes and prints its factorial. */ 3 | 4 | package ch04.ex04_38; 5 | 6 | import java.util.Scanner; 7 | 8 | public class FactorialA { 9 | 10 | public static void main(String[] args) { 11 | Scanner scanner = new Scanner(System.in); 12 | 13 | System.out.print("Enter a positive integer: "); 14 | int number = scanner.nextInt(); 15 | scanner.close(); 16 | 17 | int aux = number; 18 | 19 | int factorial = 1; 20 | while (number > 1) { 21 | factorial *= number; 22 | number--; 23 | } 24 | 25 | System.out.printf("%d! = %d", aux, factorial); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ch10/ex10_14/Cube.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_14; 2 | 3 | public class Cube extends ThreeDimensionalShape { 4 | private double side; 5 | 6 | public Cube(double side) { 7 | this.side = side; 8 | } 9 | 10 | public double getSide() { 11 | return side; 12 | } 13 | 14 | public void setSide(double side) { 15 | this.side = side; 16 | } 17 | 18 | @Override 19 | public double getArea() { 20 | return 6 * Math.pow(side, 2); 21 | } 22 | 23 | @Override 24 | public double getVolume() { 25 | return Math.pow(side, 3); 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.format("%s: %n%s = %.2f", "Cube", "size", getSide()); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/ch07/ex07_15/InitArray.java: -------------------------------------------------------------------------------- 1 | /* 7.15 (Command-Line Arguments) Rewrite Fig. 7.2 so that the size of the 2 | array is specified by the first command-line argument. If no command-line 3 | argument is supplied, use 10 as the default size of the array. */ 4 | 5 | package ch07.ex07_15; 6 | 7 | public class InitArray { 8 | public static void main(String[] args) { 9 | final int ARRAY_SIZE = args.length > 0 ? Integer.parseInt(args[0]) : 10; 10 | 11 | int[] array = new int[ARRAY_SIZE]; 12 | 13 | System.out.printf("%s%8s%n", "Index", "Value"); 14 | 15 | for (int counter = 0; counter < array.length; counter++) { 16 | System.out.printf("%5d%8d%n", counter, array[counter]); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/ch08/ex08_16/RationalTest.java: -------------------------------------------------------------------------------- 1 | package ch08.ex08_16; 2 | 3 | public class RationalTest { 4 | 5 | public static void main(String[] args) { 6 | Rational rational1 = new Rational(3, 8); 7 | Rational rational2 = new Rational(5, 12); 8 | 9 | System.out.println("Operations:"); 10 | System.out.printf("%s + %s = %s%n", rational1, rational2, Rational.add(rational1, rational2)); 11 | System.out.printf("%s - %s = %s%n", rational1, rational2, Rational.subtract(rational1, rational2)); 12 | System.out.printf("%s x %s = %s%n", rational1, rational2, Rational.multiply(rational1, rational2)); 13 | System.out.printf("%s / %s = %s%n", rational1, rational2, Rational.divide(rational1, rational2)); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/ch12/ex12_01/AdditionApp.java: -------------------------------------------------------------------------------- 1 | package ch12.ex12_01; 2 | 3 | import java.io.IOException; 4 | 5 | import javafx.application.Application; 6 | import javafx.fxml.FXMLLoader; 7 | import javafx.scene.Parent; 8 | import javafx.scene.Scene; 9 | import javafx.stage.Stage; 10 | 11 | public class AdditionApp extends Application { 12 | 13 | @Override 14 | public void start(Stage stage) throws IOException { 15 | Parent root = FXMLLoader.load(getClass().getResource("AdditionApp.fxml")); 16 | 17 | Scene scene = new Scene(root); 18 | stage.setTitle("Addition"); 19 | stage.setScene(scene); 20 | stage.show(); 21 | } 22 | 23 | public static void main(String[] args) { 24 | launch(args); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/ch13/ex13_04/Contacts.java: -------------------------------------------------------------------------------- 1 | package ch13.ex13_04; 2 | 3 | import java.io.IOException; 4 | 5 | import javafx.application.Application; 6 | import javafx.fxml.FXMLLoader; 7 | import javafx.scene.Parent; 8 | import javafx.scene.Scene; 9 | import javafx.stage.Stage; 10 | 11 | public class Contacts extends Application { 12 | 13 | @Override 14 | public void start(Stage stage) throws IOException { 15 | Parent root = FXMLLoader.load(getClass().getResource("/ch13/ex13_04/Contacts.fxml")); 16 | 17 | Scene scene = new Scene(root); 18 | stage.setTitle("Contacts"); 19 | stage.setScene(scene); 20 | stage.show(); 21 | } 22 | 23 | public static void main(String[] args) { 24 | launch(args); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/ch12/ex12_02/ScrapbookingApp.java: -------------------------------------------------------------------------------- 1 | package ch12.ex12_02; 2 | 3 | import java.io.IOException; 4 | 5 | import javafx.application.Application; 6 | import javafx.fxml.FXMLLoader; 7 | import javafx.scene.Parent; 8 | import javafx.scene.Scene; 9 | import javafx.stage.Stage; 10 | 11 | public class ScrapbookingApp extends Application { 12 | 13 | @Override 14 | public void start(Stage stage) throws IOException { 15 | Parent root = FXMLLoader.load(getClass().getResource("ScrapbookingApp.fxml")); 16 | 17 | Scene scene = new Scene(root); 18 | stage.setTitle("Scrapbooking"); 19 | stage.setScene(scene); 20 | stage.show(); 21 | } 22 | 23 | public static void main(String[] args) { 24 | launch(args); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/ch24/ex24_04/Employees.java: -------------------------------------------------------------------------------- 1 | package ch24.ex24_04; 2 | 3 | import java.io.IOException; 4 | 5 | import javafx.application.Application; 6 | import javafx.fxml.FXMLLoader; 7 | import javafx.scene.Parent; 8 | import javafx.scene.Scene; 9 | import javafx.stage.Stage; 10 | 11 | public class Employees extends Application { 12 | 13 | @Override 14 | public void start(Stage stage) throws IOException { 15 | Parent root = 16 | FXMLLoader.load(getClass().getResource("Employees.fxml")); 17 | 18 | Scene scene = new Scene(root); 19 | stage.setTitle("Employee Database"); 20 | stage.setScene(scene); 21 | stage.show(); 22 | } 23 | 24 | public static void main(String[] args) { 25 | launch(args); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ch18/ex18_16/PrintArray.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Objetivo: 18.16 (Exibir um array) Escreva um método recursivo printArray que 3 | * exibe todos os elementos em um array de inteiros, separados por espaços. 4 | * 5 | * Autor: Gustavo Alves 6 | */ 7 | 8 | package ch18.ex18_16; 9 | 10 | public class PrintArray { 11 | 12 | public static void main(String[] args) { 13 | int[] array = new int[] { 1, 2, 3, 4, 5 }; 14 | printArray(array, array.length); 15 | } 16 | 17 | public static void printArray(int[] array, int length) { 18 | if (length == 1) { 19 | System.out.print(array[0] + " "); 20 | return; 21 | } else { 22 | printArray(array, length - 1); 23 | System.out.print(array[length - 1] + " "); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/ch10/ex10_14/Sphere.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_14; 2 | 3 | public class Sphere extends ThreeDimensionalShape { 4 | private double radius; 5 | 6 | public Sphere(double radius) { 7 | this.radius = radius; 8 | } 9 | 10 | public double getRadius() { 11 | return radius; 12 | } 13 | 14 | public void setRadius(double radius) { 15 | this.radius = radius; 16 | } 17 | 18 | @Override 19 | public double getArea() { 20 | return 4 * Math.PI * Math.pow(radius, 2); 21 | } 22 | 23 | @Override 24 | public double getVolume() { 25 | return 4 * Math.PI * Math.pow(radius, 3) / 3; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.format("%s: %n%s = %.2f", "Sphere", "radius", getRadius()); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/ch10/ex10_14/Tetrahedron.java: -------------------------------------------------------------------------------- 1 | package ch10.ex10_14; 2 | 3 | public class Tetrahedron extends ThreeDimensionalShape { 4 | private double edge; 5 | 6 | public Tetrahedron(double edge) { 7 | this.edge = edge; 8 | } 9 | 10 | public double getEdge() { 11 | return edge; 12 | } 13 | 14 | public void setEdge(double edge) { 15 | this.edge = edge; 16 | } 17 | 18 | @Override 19 | public double getArea() { 20 | return Math.pow(edge, 2) * Math.sqrt(3); 21 | } 22 | 23 | @Override 24 | public double getVolume() { 25 | return 1.0 / 12 * Math.sqrt(2) * Math.pow(edge, 3); 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.format("%s: %n%s = %.2f", "Tetrahedron", "edge", getEdge()); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/ch12/ex12_04/MortgageCalculator.java: -------------------------------------------------------------------------------- 1 | package ch12.ex12_04; 2 | 3 | import java.io.IOException; 4 | 5 | import javafx.application.Application; 6 | import javafx.fxml.FXMLLoader; 7 | import javafx.scene.Parent; 8 | import javafx.scene.Scene; 9 | import javafx.stage.Stage; 10 | 11 | public class MortgageCalculator extends Application { 12 | 13 | @Override 14 | public void start(Stage stage) throws IOException { 15 | Parent root = FXMLLoader.load(getClass().getResource("/ch12/ex12_04/MortgageCalculator.fxml")); 16 | 17 | Scene scene = new Scene(root); 18 | stage.setTitle("Mortgage Calculator"); 19 | stage.setScene(scene); 20 | stage.show(); 21 | } 22 | 23 | public static void main(String[] args) { 24 | launch(args); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/ch05/GUIAndGraphicsCaseStudyExercises/ex05_01/DrawCirclesController.java: -------------------------------------------------------------------------------- 1 | package ch05.GUIAndGraphicsCaseStudyExercises.ex05_01; 2 | 3 | import javafx.event.ActionEvent; 4 | import javafx.fxml.FXML; 5 | import javafx.scene.canvas.Canvas; 6 | import javafx.scene.canvas.GraphicsContext; 7 | 8 | public class DrawCirclesController { 9 | @FXML 10 | private Canvas canvas; 11 | 12 | @FXML 13 | void drawCirclesButtonPressed(ActionEvent event) { 14 | drawCircles(); 15 | } 16 | 17 | public void drawCircles() { 18 | GraphicsContext gc = canvas.getGraphicsContext2D(); 19 | 20 | for (int i = 0; i < 12; i++) 21 | gc.strokeOval(canvas.getWidth() / 2 - 10 * i - 10, canvas.getHeight() / 2 - 10 * i - 10, 10 + 20 * i, 10 + 20 * i); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/ch29/ex29_02/AddressBook.java: -------------------------------------------------------------------------------- 1 | // Main application class that loads and displays the AddressBook's GUI. 2 | package ch29.ex29_02; 3 | 4 | import javafx.application.Application; 5 | import javafx.fxml.FXMLLoader; 6 | import javafx.scene.Parent; 7 | import javafx.scene.Scene; 8 | import javafx.stage.Stage; 9 | 10 | public class AddressBook extends Application { 11 | @Override 12 | public void start(Stage stage) throws Exception { 13 | Parent root = 14 | FXMLLoader.load(getClass().getResource("AddressBook.fxml")); 15 | 16 | Scene scene = new Scene(root); 17 | stage.setTitle("Address Book"); 18 | stage.setScene(scene); 19 | stage.show(); 20 | } 21 | 22 | public static void main(String[] args) { 23 | launch(args); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ch29/ex29_03/AddressBook.java: -------------------------------------------------------------------------------- 1 | // Main application class that loads and displays the AddressBook's GUI. 2 | 3 | package ch29.ex29_03; 4 | 5 | import javafx.application.Application; 6 | import javafx.fxml.FXMLLoader; 7 | import javafx.scene.Parent; 8 | import javafx.scene.Scene; 9 | import javafx.stage.Stage; 10 | 11 | public class AddressBook extends Application { 12 | @Override 13 | public void start(Stage stage) throws Exception { 14 | Parent root = 15 | FXMLLoader.load(getClass().getResource("AddressBook.fxml")); 16 | 17 | Scene scene = new Scene(root); 18 | stage.setTitle("Address Book"); 19 | stage.setScene(scene); 20 | stage.show(); 21 | } 22 | 23 | public static void main(String[] args) { 24 | launch(args); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/ch17/ex17_16/IntSreamFilteringAndSorting.java: -------------------------------------------------------------------------------- 1 | /* 17.16 (IntStream Filtering and Sorting) Use SecureRandom 2 | method ints to generate a stream of 50 random numbers in the range 1 to 3 | 999, then filter the resulting stream elements to select only the odd 4 | numbers and display the results in sorted order. */ 5 | 6 | package ch17.ex17_16; 7 | 8 | import java.security.SecureRandom; 9 | import java.util.stream.Collectors; 10 | 11 | public class IntSreamFilteringAndSorting { 12 | 13 | public static void main(String[] args) { 14 | SecureRandom random = new SecureRandom(); 15 | 16 | System.out.print(random.ints(50, 1, 1000) 17 | .filter(x -> x % 2 != 0) 18 | .sorted() 19 | .mapToObj(String::valueOf) 20 | .collect(Collectors.joining(" "))); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/ch04/GUIAndGraphicsCaseStudyExercises/ex04_01/part_a/DrawLines.java: -------------------------------------------------------------------------------- 1 | package ch04.GUIAndGraphicsCaseStudyExercises.ex04_01.part_a; 2 | 3 | import javafx.application.Application; 4 | import javafx.fxml.FXMLLoader; 5 | import javafx.scene.Parent; 6 | import javafx.scene.Scene; 7 | import javafx.stage.Stage; 8 | 9 | public class DrawLines extends Application { 10 | 11 | @Override 12 | public void start(Stage stage) throws Exception { 13 | Parent root = FXMLLoader.load(getClass().getResource("/ch04/GUIAndGraphicsCaseStudyExercises/ex04_01/part_a/DrawLines.fxml")); 14 | 15 | Scene scene = new Scene(root); 16 | stage.setTitle("Draw Lines"); 17 | stage.setScene(scene); 18 | stage.show(); 19 | } 20 | 21 | public static void main(String[] args) { 22 | launch(args); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/ch04/GUIAndGraphicsCaseStudyExercises/ex04_01/part_b/DrawLines.java: -------------------------------------------------------------------------------- 1 | package ch04.GUIAndGraphicsCaseStudyExercises.ex04_01.part_b; 2 | 3 | import javafx.application.Application; 4 | import javafx.fxml.FXMLLoader; 5 | import javafx.scene.Parent; 6 | import javafx.scene.Scene; 7 | import javafx.stage.Stage; 8 | 9 | public class DrawLines extends Application { 10 | 11 | @Override 12 | public void start(Stage stage) throws Exception { 13 | Parent root = FXMLLoader.load(getClass().getResource("/ch04/GUIAndGraphicsCaseStudyExercises/ex04_01/part_b/DrawLines.fxml")); 14 | 15 | Scene scene = new Scene(root); 16 | stage.setTitle("Draw Lines"); 17 | stage.setScene(scene); 18 | stage.show(); 19 | } 20 | 21 | public static void main(String[] args) { 22 | launch(args); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/ch04/GUIAndGraphicsCaseStudyExercises/ex04_02/part_a/DrawLines.java: -------------------------------------------------------------------------------- 1 | package ch04.GUIAndGraphicsCaseStudyExercises.ex04_02.part_a; 2 | 3 | import javafx.application.Application; 4 | import javafx.fxml.FXMLLoader; 5 | import javafx.scene.Parent; 6 | import javafx.scene.Scene; 7 | import javafx.stage.Stage; 8 | 9 | public class DrawLines extends Application { 10 | 11 | @Override 12 | public void start(Stage stage) throws Exception { 13 | Parent root = FXMLLoader.load(getClass().getResource("/ch04/GUIAndGraphicsCaseStudyExercises/ex04_02/part_a/DrawLines.fxml")); 14 | 15 | Scene scene = new Scene(root); 16 | stage.setTitle("Draw Lines"); 17 | stage.setScene(scene); 18 | stage.show(); 19 | } 20 | 21 | public static void main(String[] args) { 22 | launch(args); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/ch04/GUIAndGraphicsCaseStudyExercises/ex04_02/part_b/DrawLines.java: -------------------------------------------------------------------------------- 1 | package ch04.GUIAndGraphicsCaseStudyExercises.ex04_02.part_b; 2 | 3 | import javafx.application.Application; 4 | import javafx.fxml.FXMLLoader; 5 | import javafx.scene.Parent; 6 | import javafx.scene.Scene; 7 | import javafx.stage.Stage; 8 | 9 | public class DrawLines extends Application { 10 | 11 | @Override 12 | public void start(Stage stage) throws Exception { 13 | Parent root = FXMLLoader.load(getClass().getResource("/ch04/GUIAndGraphicsCaseStudyExercises/ex04_02/part_b/DrawLines.fxml")); 14 | 15 | Scene scene = new Scene(root); 16 | stage.setTitle("Draw Lines"); 17 | stage.setScene(scene); 18 | stage.show(); 19 | } 20 | 21 | public static void main(String[] args) { 22 | launch(args); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/ch24/ex24_07/AddressBook.java: -------------------------------------------------------------------------------- 1 | // Fig. X: AddressBook.java 2 | // Main application class that loads and displays the AddressBook's GUI. 3 | 4 | package ch24.ex24_07; 5 | 6 | import javafx.application.Application; 7 | import javafx.fxml.FXMLLoader; 8 | import javafx.scene.Parent; 9 | import javafx.scene.Scene; 10 | import javafx.stage.Stage; 11 | 12 | public class AddressBook extends Application { 13 | 14 | @Override 15 | public void start(Stage stage) throws Exception { 16 | Parent root = 17 | FXMLLoader.load(getClass().getResource("AddressBook.fxml")); 18 | 19 | Scene scene = new Scene(root); 20 | stage.setTitle("Address Book"); 21 | stage.setScene(scene); 22 | stage.show(); 23 | } 24 | 25 | public static void main(String[] args) { 26 | launch(args); 27 | } 28 | } -------------------------------------------------------------------------------- /src/ch24/ex24_08/AddressBook.java: -------------------------------------------------------------------------------- 1 | // Fig. X: AddressBook.java 2 | // Main application class that loads and displays the AddressBook's GUI. 3 | 4 | package ch24.ex24_08; 5 | 6 | import javafx.application.Application; 7 | import javafx.fxml.FXMLLoader; 8 | import javafx.scene.Parent; 9 | import javafx.scene.Scene; 10 | import javafx.stage.Stage; 11 | 12 | public class AddressBook extends Application { 13 | 14 | @Override 15 | public void start(Stage stage) throws Exception { 16 | Parent root = 17 | FXMLLoader.load(getClass().getResource("AddressBook.fxml")); 18 | 19 | Scene scene = new Scene(root); 20 | stage.setTitle("Address Book"); 21 | stage.setScene(scene); 22 | stage.show(); 23 | } 24 | 25 | public static void main(String[] args) { 26 | launch(args); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/ch07/GUIAndGraphicsCaseStudyExercises/ex07_01/DrawSpiralLines.java: -------------------------------------------------------------------------------- 1 | package ch07.GUIAndGraphicsCaseStudyExercises.ex07_01; 2 | 3 | import javafx.application.Application; 4 | import javafx.fxml.FXMLLoader; 5 | import javafx.scene.Parent; 6 | import javafx.scene.Scene; 7 | import javafx.stage.Stage; 8 | 9 | public class DrawSpiralLines extends Application { 10 | 11 | @Override 12 | public void start(Stage stage) throws Exception { 13 | Parent root = FXMLLoader 14 | .load(getClass().getResource("/ch07/GUIAndGraphicsCaseStudyExercises/ex07_01/DrawSpiralLines.fxml")); 15 | 16 | Scene scene = new Scene(root); 17 | stage.setTitle("Draw Spiral Lines"); 18 | stage.setScene(scene); 19 | stage.show(); 20 | } 21 | 22 | public static void main(String[] args) { 23 | launch(args); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ch07/ex07_30/Card.java: -------------------------------------------------------------------------------- 1 | // Fig. 7.9: Card.java 2 | // Card class represents a playing card. 3 | 4 | package ch07.ex07_30; 5 | 6 | public class Card { 7 | private final String face; // face of card ("Ace", "Deuce", ...) 8 | private final String suit; // suit of card ("Hearts", "Diamonds", ...) 9 | 10 | // two-argument constructor initializes card's face and suit 11 | public Card(String cardFace, String cardSuit) { 12 | this.face = cardFace; // initialize face of card 13 | this.suit = cardSuit; // initialize suit of card 14 | } 15 | 16 | public String getFace() { 17 | return face; 18 | } 19 | 20 | public String getSuit() { 21 | return suit; 22 | } 23 | 24 | // return String representation of Card 25 | public String toString() { 26 | return face + " of " + suit; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/ch07/ex07_31/Card.java: -------------------------------------------------------------------------------- 1 | // Fig. 7.9: Card.java 2 | // Card class represents a playing card. 3 | 4 | package ch07.ex07_31; 5 | 6 | public class Card { 7 | private final String face; // face of card ("Ace", "Deuce", ...) 8 | private final String suit; // suit of card ("Hearts", "Diamonds", ...) 9 | 10 | // two-argument constructor initializes card's face and suit 11 | public Card(String cardFace, String cardSuit) { 12 | this.face = cardFace; // initialize face of card 13 | this.suit = cardSuit; // initialize suit of card 14 | } 15 | 16 | public String getFace() { 17 | return face; 18 | } 19 | 20 | public String getSuit() { 21 | return suit; 22 | } 23 | 24 | // return String representation of Card 25 | public String toString() { 26 | return face + " of " + suit; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/ch08/ex08_06/SavingsAccountTest.java: -------------------------------------------------------------------------------- 1 | package ch08.ex08_06; 2 | 3 | public class SavingsAccountTest { 4 | 5 | public static void main(String[] args) { 6 | SavingsAccount saver1 = new SavingsAccount(1000); 7 | SavingsAccount saver2 = new SavingsAccount(3000); 8 | 9 | SavingsAccount.modifyInterestRate(4); 10 | 11 | for (int i = 0; i < 12; i++) { 12 | saver1.calculateMonthlyInterest(); 13 | saver2.calculateMonthlyInterest(); 14 | } 15 | 16 | System.out.printf("saver1 %s%n", saver1); 17 | System.out.printf("saver2 %s%n", saver2); 18 | 19 | SavingsAccount.modifyInterestRate(5); 20 | 21 | saver1.calculateMonthlyInterest(); 22 | saver2.calculateMonthlyInterest(); 23 | 24 | System.out.printf("saver1 %s%n", saver1); 25 | System.out.printf("saver2 %s%n", saver2); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/ch11/ex11_16/Test.java: -------------------------------------------------------------------------------- 1 | /* 11.16 (Catching Exceptions with Superclasses) Use inheritance to create 2 | an exception superclass (called ExceptionA) and exception subclasses 3 | ExceptionB and ExceptionC, where ExceptionB inherits from 4 | ExceptionA and ExceptionC inherits from ExceptionB. Write a 5 | program to demonstrate that the catch block for type ExceptionA 6 | catches exceptions of types ExceptionB and ExceptionC. */ 7 | 8 | package ch11.ex11_16; 9 | 10 | public class Test { 11 | 12 | public static void main(String[] args) { 13 | try { 14 | throw new ExceptionB("Exception B"); 15 | } catch (ExceptionA e) { 16 | e.printStackTrace(); 17 | } 18 | 19 | try { 20 | throw new ExceptionC("Exception C"); 21 | } catch (ExceptionA e) { 22 | e.printStackTrace(); 23 | } 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/ch05/ex05_20/ValueOfPI.java: -------------------------------------------------------------------------------- 1 | /* 5.20 (Calculating the Value of PI) Calculate the value of from the infinite 2 | series 3 | 4 | PI = 4 - (4/3) + (4/5) - (4/7) + (4/9) - (4/11) + ... 5 | 6 | Print a table that shows the value of π approximated by computing the first 7 | 200,000 terms of this series. How many terms do you have to use before 8 | you first get a value that begins with 3.14159? */ 9 | 10 | package ch05.ex05_20; 11 | 12 | public class ValueOfPI { 13 | 14 | public static void main(String[] args) { 15 | double pi = 0; 16 | double oddNumber = 1; 17 | 18 | for (int i = 0; i < 200000; i++) { 19 | if (i % 2 == 0) 20 | pi += 4 / oddNumber; 21 | else 22 | pi -= 4 / oddNumber; 23 | 24 | oddNumber += 2; 25 | } 26 | 27 | System.out.printf("PI = %f", pi); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/ch06/GUIAndGraphicsCaseStudyExercises/ex06_01/DrawBullseye.java: -------------------------------------------------------------------------------- 1 | package ch06.GUIAndGraphicsCaseStudyExercises.ex06_01; 2 | 3 | import java.io.IOException; 4 | 5 | import javafx.application.Application; 6 | import javafx.fxml.FXMLLoader; 7 | import javafx.scene.Parent; 8 | import javafx.scene.Scene; 9 | import javafx.stage.Stage; 10 | 11 | public class DrawBullseye extends Application { 12 | 13 | @Override 14 | public void start(Stage stage) throws IOException { 15 | Parent root = FXMLLoader 16 | .load(getClass().getResource("/ch06/GUIAndGraphicsCaseStudyExercises/ex06_01/DrawBullseye.fxml")); 17 | 18 | Scene scene = new Scene(root); 19 | stage.setTitle("Bullseye"); 20 | stage.setScene(scene); 21 | stage.show(); 22 | } 23 | 24 | public static void main(String[] args) { 25 | launch(args); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ch06/GUIAndGraphicsCaseStudyExercises/ex06_02/DrawShapes.java: -------------------------------------------------------------------------------- 1 | package ch06.GUIAndGraphicsCaseStudyExercises.ex06_02; 2 | 3 | import java.io.IOException; 4 | 5 | import javafx.application.Application; 6 | import javafx.fxml.FXMLLoader; 7 | import javafx.scene.Parent; 8 | import javafx.scene.Scene; 9 | import javafx.stage.Stage; 10 | 11 | public class DrawShapes extends Application { 12 | 13 | @Override 14 | public void start(Stage stage) throws IOException { 15 | Parent root = FXMLLoader 16 | .load(getClass().getResource("/ch06/GUIAndGraphicsCaseStudyExercises/ex06_02/DrawShapes.fxml")); 17 | 18 | Scene scene = new Scene(root); 19 | stage.setTitle("Random Shapes"); 20 | stage.setScene(scene); 21 | stage.show(); 22 | } 23 | 24 | public static void main(String[] args) { 25 | launch(args); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ch05/GUIAndGraphicsCaseStudyExercises/ex05_01/DrawCircles.java: -------------------------------------------------------------------------------- 1 | package ch05.GUIAndGraphicsCaseStudyExercises.ex05_01; 2 | 3 | import java.io.IOException; 4 | 5 | import javafx.application.Application; 6 | import javafx.fxml.FXMLLoader; 7 | import javafx.scene.Parent; 8 | import javafx.scene.Scene; 9 | import javafx.stage.Stage; 10 | 11 | public class DrawCircles extends Application { 12 | 13 | @Override 14 | public void start(Stage stage) throws IOException { 15 | Parent root = FXMLLoader 16 | .load(getClass().getResource("/ch05/GUIAndGraphicsCaseStudyExercises/ex05_01/DrawCircles.fxml")); 17 | 18 | Scene scene = new Scene(root); 19 | stage.setTitle("Concentric Circles"); 20 | stage.setScene(scene); 21 | stage.show(); 22 | } 23 | 24 | public static void main(String[] args) { 25 | launch(args); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ch10/GUIAndGraphicsCaseStudyExercises/ex10_02/MyOval.java: -------------------------------------------------------------------------------- 1 | package ch10.GUIAndGraphicsCaseStudyExercises.ex10_02; 2 | 3 | import javafx.scene.canvas.GraphicsContext; 4 | import javafx.scene.paint.Color; 5 | 6 | public class MyOval extends MyBoundedShape { 7 | 8 | public MyOval() { 9 | super(); 10 | } 11 | 12 | public MyOval(double x1, double y1, double x2, double y2, Color strokeColor, boolean filled, Color fillColor) { 13 | super(x1, y1, x2, y2, strokeColor, filled, fillColor); 14 | } 15 | 16 | @Override 17 | public void draw(GraphicsContext gc) { 18 | gc.setStroke(getStrokeColor()); 19 | gc.setFill(getFillColor()); 20 | 21 | if (isFilled()) 22 | gc.fillOval(getUpperLeftX(), getUpperLeftY(), getWidth(), getHeight()); 23 | else 24 | gc.strokeOval(getUpperLeftX(), getUpperLeftY(), getWidth(), getHeight()); 25 | } 26 | } -------------------------------------------------------------------------------- /src/ch04/GUIAndGraphicsCaseStudyExercises/ex04_01/part_a/DrawLinesController.java: -------------------------------------------------------------------------------- 1 | package ch04.GUIAndGraphicsCaseStudyExercises.ex04_01.part_a; 2 | 3 | import javafx.event.ActionEvent; 4 | import javafx.fxml.FXML; 5 | import javafx.scene.canvas.Canvas; 6 | import javafx.scene.canvas.GraphicsContext; 7 | 8 | public class DrawLinesController { 9 | @FXML 10 | private Canvas canvas; 11 | 12 | @FXML 13 | void drawLinesButtonPressed(ActionEvent event) { 14 | GraphicsContext gc = canvas.getGraphicsContext2D(); 15 | 16 | double incrementWidth = canvas.getWidth() / 20; 17 | double incrementHeight = canvas.getHeight() / 20; 18 | 19 | int linesCounter = 0; 20 | while (linesCounter < 20) { 21 | gc.strokeLine(0, 0, incrementWidth * linesCounter, canvas.getHeight() - incrementHeight * linesCounter); 22 | linesCounter++; 23 | } 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/ch06/GUIAndGraphicsCaseStudyExercises/ex06_02/DrawShapes.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |