Learn Java Easy. Chapter 14. Reading and Writing Text Files

Chapter 14. Reading and Writing Text Files Now that we have the record of medicines stolen by Phil, it’s time to blackmail him. Pedro will meet with him today. We have no doubt that he will cooperate. If we presented the evidence, he would not only be fired, but he would also be involved in … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 13. Gathering Evidence Against Phil

Chapter 13. Gathering Evidence Against Phil After the incident with the alarm and subsequent blackout, prison officials are on alert. They are beginning to suspect something, and extraordinary precautionary measures are being taken. Most of them don’t affect us, but to access the prison hospital, the first thing Bud needs to do is deactivate the … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 12 Exercises

Chapter 12 Exercises Exercise 1. Division by zero. Write a Program that asks the user for two numbers and tries to divide the first by the second. Handle the ArithmeticException in case of division by zero.   Solution   Exercise 2. Handling NumberFormatException: Write a Program that asks the user for an integer number and … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 12. Try & Catch

Chapter 12. Try & Catch Bud has obtained the keys he needed from Vicente’s office. They’re going to be essential for executing the plan. Leaving the prison won’t be easy, but returning to it without anyone noticing will be even more complicated.   It appears that one of the staff members working in the prison … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 11. Hacking the Security System Again

Chapter 11. Hacking the Security System Again The day has arrived, the escape has officially begun and, from today, there’s no turning back. Pedro must already be in the library, so if everything happens as we expect, the alarm will sound shortly. Bud is already prepared with his computer; without it, he couldn’t reach the … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 10 Exercises

Chapter 10 Exercises Exercise 1. Get the current date   Solution:   Exercise 2. Get the current time   Solution:   Exercise 3. Get the current date and time   Solution:   Exercise 4. Create a specific date   Solution:   Exercise 5. Create a specific time   Solution:   Exercise 6. Add days to … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 8 Exercises

Chapter 8 Exercises Exercise 1. Create a 5×5 2D matrix that represents the cells of a prison. Fill all positions with the value 0, indicating that all cells are empty.   Solution:   Exercise 2. Let’s assume that cells [0][1], [2][2], and [4][3] are occupied by prisoners. Update the matrix from the previous exercise to … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 10. Working with Date and Time

Chapter 10. Working with Date and Time My part is done. After creating the code for the Programs that Pedro needs, I’ve hidden them in a system folder. It didn’t even take me half an hour to do it. I don’t need the computer anymore, so I’ll go read for a while.   I’m quite … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 9. Creating a Distraction Device. With Loops, Conditionals and Scanner

Chapter 9. Creating a Distraction Device. With Loops, Conditionals and Scannerner I hadn’t realized it, but I’ve been behind bars for almost a month and a half now. It might not be a long time, but I’ve already forged a great friendship with Bud. I told him about my situation, and he’s willing to help … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 8. Bud’s Job. 2D Arrays

Chapter 8. Bud’s Job. 2D Arrays The days feel endless. I’m anxiously waiting for Rich’s visit, but it’s taking longer than usual. It’s been ten days since I had the conversation with Chani’s cousin, and he still hasn’t come to see me. Bud keeps me entertained; he recently introduced me to his friend Pedro. He … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏